OpenGL2: Reduce redundant GL calls.
This commit is contained in:
1 parent
84206c8598
commit
0578b70f38
10 files changed
+73
-78
No files matched your search
@@ -404,8 +404,7 @@ void R_BindVao(vao_t * vao)
|
||||
qglBindBufferARB(GL_ARRAY_BUFFER_ARB, vao->vertexesVBO);
|
||||
qglBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, vao->indexesIBO);
|
||||
|
||||
if (vao != tess.vao)
|
||||
Vao_SetVertexPointers(vao);
|
||||
Vao_SetVertexPointers(vao);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user