mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Check GL_MAX_VERTEX_ATTRIBS on apply as well as fetch
This commit is contained in:
@@ -301,7 +301,9 @@ void GLRenderState::ApplyState()
|
||||
|
||||
// See FetchState(). The spec says that you have to SET the right format for the shader too,
|
||||
// but we couldn't query for the format so we can't set it here.
|
||||
for(GLuint i=0; i < (GLuint)ARRAY_COUNT(GenericVertexAttribs); i++)
|
||||
GLuint maxNumAttribs = 0;
|
||||
m_Real->glGetIntegerv(eGL_MAX_VERTEX_ATTRIBS, (GLint *)&maxNumAttribs);
|
||||
for(GLuint i=0; i < RDCMAX(maxNumAttribs, (GLuint)ARRAY_COUNT(GenericVertexAttribs)); i++)
|
||||
m_Real->glVertexAttrib4fv(i, &GenericVertexAttribs[i].x);
|
||||
|
||||
m_Real->glPointParameterf(eGL_POINT_FADE_THRESHOLD_SIZE, PointFadeThresholdSize);
|
||||
|
||||
Reference in New Issue
Block a user