@@ -907,18 +907,18 @@ HRESULT CRender::shader_compile(
907907 xr_free (*it);
908908
909909 // Get the compilation result
910- GLboolean status;
911- CHK_GL (glGetShaderiv (shader, GL_COMPILE_STATUS, (GLint*) &status));
910+ GLint status;
911+ CHK_GL (glGetShaderiv (shader, GL_COMPILE_STATUS, &status));
912912
913913 // Link program if compilation succeeded
914914 GLchar* _pErrorMsgs = NULL ;
915- if (status == GL_TRUE) {
915+ if ((GLboolean) status == GL_TRUE) {
916916 CHK_GL (glAttachShader (program, shader));
917917 CHK_GL (glLinkProgram (program));
918918 CHK_GL (glDetachShader (program, shader));
919- CHK_GL (glGetProgramiv (program, GL_LINK_STATUS, (GLint*) &status));
919+ CHK_GL (glGetProgramiv (program, GL_LINK_STATUS, &status));
920920
921- if (status == GL_FALSE)
921+ if ((GLboolean) status == GL_FALSE)
922922 {
923923 GLint length;
924924 CHK_GL (glGetProgramiv (program, GL_INFO_LOG_LENGTH, &length));
@@ -934,7 +934,7 @@ HRESULT CRender::shader_compile(
934934 CHK_GL (glGetShaderInfoLog (shader, length, nullptr , _pErrorMsgs));
935935 }
936936
937- if (status == GL_FALSE) {
937+ if ((GLboolean) status == GL_FALSE) {
938938 Msg (" ! shader compilation failed" );
939939 Log (" ! " , name);
940940 if (_pErrorMsgs)
0 commit comments