win32: handle shader loading errors

This commit is contained in:
OV2 2018-05-24 16:14:50 +02:00
parent ec5980b1af
commit c72675a03b
1 changed files with 3 additions and 1 deletions

View File

@ -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;