Remove dead assignment in GLVertexBuffer::draw

Variable primitiveMode is not read in the branch and there's a return in
the same branch.

REVIEW: 111192
This commit is contained in:
Martin Gräßlin 2013-06-23 12:13:45 +02:00
parent fa6b46ef30
commit db2e6687e1

View file

@ -1897,8 +1897,6 @@ void GLVertexBuffer::draw(const QRegion &region, GLenum primitiveMode, int first
{ {
#ifndef KWIN_HAVE_OPENGLES #ifndef KWIN_HAVE_OPENGLES
if (primitiveMode == GL_QUADS) { if (primitiveMode == GL_QUADS) {
primitiveMode = GL_TRIANGLES;
IndexBuffer *&indexBuffer = GLVertexBufferPrivate::s_indexBuffer; IndexBuffer *&indexBuffer = GLVertexBufferPrivate::s_indexBuffer;
if (!indexBuffer) if (!indexBuffer)