diff --git a/source/build/src/glsurface.cpp b/source/build/src/glsurface.cpp index 4bde7d503..87812f25d 100644 --- a/source/build/src/glsurface.cpp +++ b/source/build/src/glsurface.cpp @@ -38,12 +38,11 @@ static GLuint compileShader(GLenum shaderType, const char* const source) GLint compileStatus; glGetShaderiv(shaderID, GL_COMPILE_STATUS, &compileStatus); - OSD_Printf("Compile Status: %u\n", compileStatus); - if (!compileStatus) { GLint logLength; glGetShaderiv(shaderID, GL_INFO_LOG_LENGTH, &logLength); + OSD_Printf("Compile Status: %u\n", compileStatus); if (logLength > 0) { char *infoLog = (char*) Bmalloc(logLength); diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index ca3476004..2988d0af9 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -440,12 +440,11 @@ static GLuint polymost2_compileShader(GLenum shaderType, const char* const sourc GLint compileStatus; glGetShaderiv(shaderID, GL_COMPILE_STATUS, &compileStatus); - OSD_Printf("Compile Status: %u\n", compileStatus); - if (!compileStatus) { GLint logLength; glGetShaderiv(shaderID, GL_INFO_LOG_LENGTH, &logLength); + OSD_Printf("Compile Status: %u\n", compileStatus); if (logLength > 0) { char *infoLog = (char*) malloc(logLength);