OpenGL2: Reduce redundant GL calls.
This commit is contained in:
parent
84206c8598
commit
0578b70f38
10 changed files with 73 additions and 78 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue