mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-23 12:10:08 +00:00
Fix duplicate variables with identical name
This commit is contained in:
parent
8e7d79c4ae
commit
4d36cf8c3c
@ -188,7 +188,7 @@ GLFrameBuffer::compileProgram(char const * src, char const * defines) {
|
||||
if (colorMap != -1)
|
||||
glUniform1i(colorMap, 0); // GL_TEXTURE0
|
||||
|
||||
GLint colorMap = glGetUniformLocation(program, "normalMap");
|
||||
GLint normalMap = glGetUniformLocation(program, "normalMap");
|
||||
if (normalMap != -1)
|
||||
glUniform1i(normalMap, 1); // GL_TEXTURE1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user