mirror of https://github.com/snes9xgit/snes9x.git
win32: handle shader loading errors
This commit is contained in:
parent
ec5980b1af
commit
c72675a03b
|
@ -772,7 +772,9 @@ bool COpenGL::SetShadersGLSL(const TCHAR *glslFileName)
|
|||
if (!glslFileName)
|
||||
return false;
|
||||
|
||||
glslShader->load_shader(_tToChar(glslFileName));
|
||||
if(!glslShader->load_shader(_tToChar(glslFileName))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
shader_type = OGL_SHADER_GLSL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue