Since glProgramUniform is not supported on MAc we need a workaround...

This commit is contained in:
Sam Gateau 2015-03-18 16:15:06 -07:00
parent b5eb4a7f5b
commit 414315b6e0

View file

@ -510,7 +510,8 @@ int makeUniformSlots(GLuint glprogram, const Shader::BindingSet& slotBindings, S
GLint uniformsCount = 0;
#if (GPU_FEATURE_PROFILE == GPU_LEGACY)
GLuint currentProgram = glGetIntegerv(GL_CURRENT_PROGRAM);
GLuint currentProgram = 0;
glGetIntegerv(GL_CURRENT_PROGRAM, &currentProgram);
glUseProgram(glprogram);
#endif