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:
parent
fa6b46ef30
commit
db2e6687e1
1 changed files with 0 additions and 2 deletions
|
@ -1897,8 +1897,6 @@ void GLVertexBuffer::draw(const QRegion ®ion, 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)
|
||||||
|
|
Loading…
Reference in a new issue