From f3385b6ad22af53245e20ab3dda10853e1ee95a4 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 16 Aug 2021 19:52:57 +0200 Subject: [PATCH] Update rlgl.h --- src/rlgl.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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; }