mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
ogl: don't PanicAlert on shader compiler warnings
This commit is contained in:
parent
24a44ecfb8
commit
28f2bd310d
@ -308,6 +308,7 @@ bool ProgramShaderCache::CompileShader ( SHADER& shader, const char* vcode, cons
|
|||||||
file << s_glsl_header << vcode << s_glsl_header << pcode << infoLog;
|
file << s_glsl_header << vcode << s_glsl_header << pcode << infoLog;
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
|
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",
|
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,
|
szTemp,
|
||||||
g_ogl_config.gl_vendor,
|
g_ogl_config.gl_vendor,
|
||||||
@ -365,6 +366,7 @@ GLuint ProgramShaderCache::CompileSingleShader (GLuint type, const char* code )
|
|||||||
file << s_glsl_header << code << infoLog;
|
file << s_glsl_header << code << infoLog;
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
|
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",
|
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",
|
type==GL_VERTEX_SHADER ? "vertex" : "pixel",
|
||||||
szTemp,
|
szTemp,
|
||||||
|
Loading…
Reference in New Issue
Block a user