My equivalent code is below. Only difference I can see is that I pass "NULL" for the length pointer when calling glGetShaderInfoLog glCompileShader(shaderId); glGetShaderiv(shaderId,GL_COMPILE_STATUS,&compiledOk ); if(compiledOk == GL_FALSE) { GLint logLength; glGetShaderiv(shaderId,GL_INFO_LOG_LEN...