Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
In the shader log message, say if the error came from a PS or VS.
  • Loading branch information
Sonicadvance1 committed Dec 19, 2013
1 parent 95a1465 commit 8c264a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/OGL/Src/ProgramShaderCache.cpp
Expand Up @@ -413,7 +413,7 @@ GLuint ProgramShaderCache::CompileSingleShader (GLuint type, const char* code )
GLsizei charsWritten;
GLchar* infoLog = new GLchar[length];
glGetShaderInfoLog(result, length, &charsWritten, infoLog);
ERROR_LOG(VIDEO, "PS Shader info log:\n%s", infoLog);
ERROR_LOG(VIDEO, "%s Shader info log:\n%s", type==GL_VERTEX_SHADER ? "VS" : "PS", infoLog);
char szTemp[MAX_PATH];
sprintf(szTemp,
"%sbad_%s_%04i.txt",
Expand Down

0 comments on commit 8c264a3

Please sign in to comment.