summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2013-09-18 11:47:44 +0200
committerdegasus <wickmarkus@web.de>2013-09-18 11:47:44 +0200
commit28f2bd310da342ad24d3108e0c68c972d2dc65ff (patch)
treecb32423c4a95f84d362c4852f233fa66aa0ada87 /Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp
parent24a44ecfb86e4c02b592908d8ec4430b9aea9c26 (diff)
ogl: don't PanicAlert on shader compiler warnings
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp
index b99b112f2f..5cc9ec36cd 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp
@@ -308,12 +308,13 @@ bool ProgramShaderCache::CompileShader ( SHADER& shader, const char* vcode, cons
file << s_glsl_header << vcode << s_glsl_header << pcode << infoLog;
file.close();
- PanicAlert("Failed to link shaders!\nThis usually happens when trying to use Dolphin with an outdated GPU or integrated GPU like the Intel GMA series.\n\nIf you're sure this is Dolphin's error anyway, post the contents of %s along with this error message at the forums.\n\nDebug info (%s, %s, %s):\n%s",
- szTemp,
- g_ogl_config.gl_vendor,
- g_ogl_config.gl_renderer,
- g_ogl_config.gl_version,
- infoLog);
+ if(linkStatus != GL_TRUE)
+ PanicAlert("Failed to link shaders!\nThis usually happens when trying to use Dolphin with an outdated GPU or integrated GPU like the Intel GMA series.\n\nIf you're sure this is Dolphin's error anyway, post the contents of %s along with this error message at the forums.\n\nDebug info (%s, %s, %s):\n%s",
+ szTemp,
+ g_ogl_config.gl_vendor,
+ g_ogl_config.gl_renderer,
+ g_ogl_config.gl_version,
+ infoLog);
delete [] infoLog;
}
@@ -365,13 +366,14 @@ GLuint ProgramShaderCache::CompileSingleShader (GLuint type, const char* code )
file << s_glsl_header << code << infoLog;
file.close();
- PanicAlert("Failed to compile %s shader!\nThis usually happens when trying to use Dolphin with an outdated GPU or integrated GPU like the Intel GMA series.\n\nIf you're sure this is Dolphin's error anyway, post the contents of %s along with this error message at the forums.\n\nDebug info (%s, %s, %s):\n%s",
- type==GL_VERTEX_SHADER ? "vertex" : "pixel",
- szTemp,
- g_ogl_config.gl_vendor,
- g_ogl_config.gl_renderer,
- g_ogl_config.gl_version,
- infoLog);
+ if(compileStatus != GL_TRUE)
+ PanicAlert("Failed to compile %s shader!\nThis usually happens when trying to use Dolphin with an outdated GPU or integrated GPU like the Intel GMA series.\n\nIf you're sure this is Dolphin's error anyway, post the contents of %s along with this error message at the forums.\n\nDebug info (%s, %s, %s):\n%s",
+ type==GL_VERTEX_SHADER ? "vertex" : "pixel",
+ szTemp,
+ g_ogl_config.gl_vendor,
+ g_ogl_config.gl_renderer,
+ g_ogl_config.gl_version,
+ infoLog);
delete[] infoLog;
}