From 2436a065272bd708e31c589164750d4a4ff39f02 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 14 May 2024 22:22:16 +0200 Subject: [PATCH] glgsg: Better error when invalid ShaderPtrSpec type is encountered --- panda/src/glstuff/glShaderContext_src.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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]) {