Browse Source

glsl: Fix Shader::_error_flag not being set on compile errors (#622)

Mitchell Stokes 6 years ago
parent
commit
f2686c5ad8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/glstuff/glShaderContext_src.cxx

+ 1 - 1
panda/src/glstuff/glShaderContext_src.cxx

@@ -3306,7 +3306,7 @@ glsl_compile_and_link() {
   }
 
   _glgsg->report_my_gl_errors();
-  return true;
+  return valid;
 }
 
 #endif  // OPENGLES_1