From db2e6687e124fb3058a7b84f1f0dfae0975ab8e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 23 Jun 2013 12:13:45 +0200 Subject: [PATCH] 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 --- libkwineffects/kwinglutils.cpp | 2 -- 1 file changed, 2 deletions(-) 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)