Update rlgl.h

This commit is contained in:
Ray 2021-08-16 19:52:57 +02:00
parent ef8526ae36
commit f3385b6ad2

View File

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