OpenGL2: Reduce redundant GL calls.

This commit is contained in:
SmileTheory committed 2014-10-14 06:15:06 -07:00
1 parent 84206c8598
commit 0578b70f38
10 files changed
+73 -78

No files matched your search

-19
View File
@@ -1485,25 +1485,6 @@ void GLSL_BindNullProgram(void)
}
void GLSL_VertexAttribsState(uint32_t stateBits)
{
int attribIndex;
for (attribIndex = 0; attribIndex < ATTR_INDEX_COUNT; attribIndex++)
{
uint32_t attribBit = 1 << attribIndex;
if (stateBits & attribBit)
{
qglEnableVertexAttribArrayARB(attribIndex);
}
else
{
qglDisableVertexAttribArrayARB(attribIndex);
}
}
GLSL_VertexAttribPointers(stateBits);
}
void GLSL_VertexAttribPointers(uint32_t attribBits)
{
int newFrame, oldFrame;