~hikiko/compiz/compiz.shared-transform-ezoom

« back to all changes in this revision

Viewing changes to plugins/opengl/src/vertexbuffer.cpp

  • Committer: Eleni Maria Stea
  • Date: 2015-05-12 06:33:47 UTC
  • mfrom: (3947.1.3 compiz)
  • Revision ID: elenimaria.stea@canonical.com-20150512063347-eqgmtkv1yzkoawsd
localĀ mergeĀ 

Show diffs side-by-side

added added

removed removed

Lines of Context:
621
621
        glTexCoordPointer (2, GL_FLOAT, 0, &textureData[i][0]);
622
622
    }
623
623
 
624
 
    glDrawArrays (primitiveType, vertexOffset, vertexData.size () / 3);
 
624
    glDrawArrays (primitiveType, vertexOffset, maxVertices > 0 ?
 
625
                                    std::min (static_cast <int> (vertexData.size () / 3),
 
626
                                              maxVertices) :
 
627
                                    vertexData.size () / 3);
625
628
 
626
629
    glDisableClientState (GL_VERTEX_ARRAY);
627
630
    glDisableClientState (GL_NORMAL_ARRAY);