mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Since glProgramUniform is not supported on MAc we need a workaround...
This commit is contained in:
parent
b5eb4a7f5b
commit
414315b6e0
1 changed files with 2 additions and 1 deletions
|
@ -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, ¤tProgram);
|
||||
glUseProgram(glprogram);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue