From 4d36cf8c3ce7a708828728963b438f899380919c Mon Sep 17 00:00:00 2001 From: Nicholas Yue Date: Tue, 24 Jun 2014 17:27:45 -0700 Subject: [PATCH] Fix duplicate variables with identical name --- examples/common/gl_framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common/gl_framebuffer.cpp b/examples/common/gl_framebuffer.cpp index 0cad266e..150ff60f 100644 --- a/examples/common/gl_framebuffer.cpp +++ b/examples/common/gl_framebuffer.cpp @@ -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