浏览代码

Update rlgl.h

pull/1925/head
Ray 3 年前
父节点
当前提交
f3385b6ad2
共有 1 个文件被更改,包括 9 次插入6 次删除
  1. +9
    -6
      src/rlgl.h

+ 9
- 6
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;
}

正在加载...
取消
保存