You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
glUniformSubroutinesuiv must be called after every call to glUseProgram to (re-)activate subroutines. Since subroutines have not much in common with normal uniforms, I suggest a special integration: store a list of selected subroutine indices by shader type inside Program, expose corresponding get/set functions and call glUniformSubroutinesuiv in Program::use() if the list is non-empty. (Plus the same for ProgramPipeline)
The text was updated successfully, but these errors were encountered:
See https://www.khronos.org/opengl/wiki/Shader_Subroutine
glUniformSubroutinesuiv
must be called after every call toglUseProgram
to (re-)activate subroutines. Since subroutines have not much in common with normal uniforms, I suggest a special integration: store a list of selected subroutine indices by shader type insideProgram
, expose corresponding get/set functions and callglUniformSubroutinesuiv
inProgram::use()
if the list is non-empty. (Plus the same forProgramPipeline
)The text was updated successfully, but these errors were encountered: