Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
-
a2930e7e305fde4b4e7c42fcb17d725204e6f299, fa0db82b1b710d180159827f93bd384fa7e91c5e
Description
QGLPainter::setVertexBuffer() does this over and over:
buffer->bind();
setVertexAttribute(...);
buffer->unbind();
If the same buffer is used for the next paint, then this will constantly flip from the id to 0 to the id to 0, etc. Same with index buffers.
QGLPainter should keep track of this internally and only glBindBuffer() when a real buffer switch occurs, or raw client-side arrays are used for a drawing request.