diff --git a/src/rlgl.h b/src/rlgl.h index df9b63b66..9b705473f 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -3436,11 +3436,6 @@ unsigned int rlLoadShaderCode(const char *vsCode, const char *fsCode) else { id = rlLoadShaderProgram(vertexShaderId, fragmentShaderId); - - // Get the size of compiled shader program (not available on OpenGL ES 2.0) - // NOTE: If GL_LINK_STATUS is GL_FALSE, program binary length is zero. - //GLint binarySize = 0; - //glGetProgramiv(id, GL_PROGRAM_BINARY_LENGTH, &binarySize); if (vertexShaderId != RLGL.State.defaultVShaderId) { @@ -3587,7 +3582,15 @@ unsigned int rlLoadShaderProgram(unsigned int vShaderId, unsigned int fShaderId) program = 0; } - else TRACELOG(RL_LOG_INFO, "SHADER: [ID %i] Program shader loaded successfully", program); + else + { + // Get the size of compiled shader program (not available on OpenGL ES 2.0) + // NOTE: If GL_LINK_STATUS is GL_FALSE, program binary length is zero. + //GLint binarySize = 0; + //glGetProgramiv(id, GL_PROGRAM_BINARY_LENGTH, &binarySize); + + TRACELOG(RL_LOG_INFO, "SHADER: [ID %i] Program shader loaded successfully", program); + } #endif return program; }