Fix duplicate variables with identical name

This commit is contained in:
Nicholas Yue 2014-06-24 17:27:45 -07:00 committed by manuelk
parent 8e7d79c4ae
commit 4d36cf8c3c

View File

@ -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