Skip to content

Commit f25532d

Browse files
committed
glgsg: properly handle shader compilation failure
Fixes panda3d#645
1 parent 0568312 commit f25532d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

panda/src/glstuff/glShaderContext_src.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3206,6 +3206,10 @@ glsl_compile_and_link() {
32063206
valid &= glsl_compile_shader(Shader::ST_compute);
32073207
}
32083208

3209+
if (!valid) {
3210+
return false;
3211+
}
3212+
32093213
// There might be warnings, so report those. GLSLShaders::const_iterator
32103214
// it; for (it = _glsl_shaders.begin(); it != _glsl_shaders.end(); ++it) {
32113215
// glsl_report_shader_errors(*it); }

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy