glgsg: properly handle shader compilation failure

Fixes #645
This commit is contained in:
rdb 2019-05-03 20:48:51 +02:00
parent 0568312324
commit f25532db78

View File

@ -3206,6 +3206,10 @@ glsl_compile_and_link() {
valid &= glsl_compile_shader(Shader::ST_compute); valid &= glsl_compile_shader(Shader::ST_compute);
} }
if (!valid) {
return false;
}
// There might be warnings, so report those. GLSLShaders::const_iterator // There might be warnings, so report those. GLSLShaders::const_iterator
// it; for (it = _glsl_shaders.begin(); it != _glsl_shaders.end(); ++it) { // it; for (it = _glsl_shaders.begin(); it != _glsl_shaders.end(); ++it) {
// glsl_report_shader_errors(*it); } // glsl_report_shader_errors(*it); }