mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 23:29:17 +00:00
In the shader log message, say if the error came from a PS or VS.
This commit is contained in:
parent
95a1465697
commit
8c264a3964
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ GLuint ProgramShaderCache::CompileSingleShader (GLuint type, const char* code )
|
||||||
GLsizei charsWritten;
|
GLsizei charsWritten;
|
||||||
GLchar* infoLog = new GLchar[length];
|
GLchar* infoLog = new GLchar[length];
|
||||||
glGetShaderInfoLog(result, length, &charsWritten, infoLog);
|
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];
|
char szTemp[MAX_PATH];
|
||||||
sprintf(szTemp,
|
sprintf(szTemp,
|
||||||
"%sbad_%s_%04i.txt",
|
"%sbad_%s_%04i.txt",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue