diff --git a/libkwineffects/kwinglutils.cpp b/libkwineffects/kwinglutils.cpp index e587fbee14..048cce725e 100644 --- a/libkwineffects/kwinglutils.cpp +++ b/libkwineffects/kwinglutils.cpp @@ -1897,8 +1897,6 @@ void GLVertexBuffer::draw(const QRegion ®ion, GLenum primitiveMode, int first { #ifndef KWIN_HAVE_OPENGLES if (primitiveMode == GL_QUADS) { - primitiveMode = GL_TRIANGLES; - IndexBuffer *&indexBuffer = GLVertexBufferPrivate::s_indexBuffer; if (!indexBuffer)