mirror of
https://github.com/lubosz/overte.git
synced 2025-08-12 04:26:44 +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;
|
GLint uniformsCount = 0;
|
||||||
|
|
||||||
#if (GPU_FEATURE_PROFILE == GPU_LEGACY)
|
#if (GPU_FEATURE_PROFILE == GPU_LEGACY)
|
||||||
GLuint currentProgram = glGetIntegerv(GL_CURRENT_PROGRAM);
|
GLuint currentProgram = 0;
|
||||||
|
glGetIntegerv(GL_CURRENT_PROGRAM, ¤tProgram);
|
||||||
glUseProgram(glprogram);
|
glUseProgram(glprogram);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue