mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Don't query GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS if no subroutines
* Works around some mesa debug message spam if no subroutines exist.
This commit is contained in:
@@ -907,6 +907,12 @@ void GLRenderState::FetchState(WrappedOpenGL *gl)
|
||||
if(prog == 0)
|
||||
continue;
|
||||
|
||||
GLint numSubroutines = 0;
|
||||
m_Real->glGetProgramStageiv(prog, shs[s], eGL_ACTIVE_SUBROUTINES, &numSubroutines);
|
||||
|
||||
if(numSubroutines == 0)
|
||||
continue;
|
||||
|
||||
m_Real->glGetProgramStageiv(prog, shs[s], eGL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS,
|
||||
&Subroutines[s].numSubroutines);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user