glgsg: Better error when invalid ShaderPtrSpec type is encountered

This commit is contained in:
rdb 2024-05-14 22:22:16 +02:00
parent a9206041d9
commit 2436a06527

View File

@ -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]) {