diff --git a/panda/src/glstuff/glShaderContext_src.cxx b/panda/src/glstuff/glShaderContext_src.cxx index f3c9a106c7..129c617b13 100644 --- a/panda/src/glstuff/glShaderContext_src.cxx +++ b/panda/src/glstuff/glShaderContext_src.cxx @@ -2255,7 +2255,12 @@ issue_parameters(int altered) { break; default: - nassertd(false) continue; +#ifndef NDEBUG + GLCAT.error() + << "Invalid ShaderPtrSpec type " << (int)ptr_data->_type + << " for shader input '" << spec._id._name << "'\n"; +#endif + continue; } switch (spec._dim[1]) {