diff --git a/libraries/gl/src/gl/GLShaders.cpp b/libraries/gl/src/gl/GLShaders.cpp index b8e1bf7391..3487ae5d25 100644 --- a/libraries/gl/src/gl/GLShaders.cpp +++ b/libraries/gl/src/gl/GLShaders.cpp @@ -75,8 +75,8 @@ namespace gl { return false; } - GLuint glprogram = 0; #ifdef SEPARATE_PROGRAM + GLuint glprogram = 0; // so far so good, program is almost done, need to link: GLuint glprogram = glCreateProgram(); if (!glprogram) {