mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
glgsg: Show error for unrecognized p3d_TextureXYZ input
This commit is contained in:
parent
b1942e8065
commit
79dae16a2c
@ -1007,6 +1007,10 @@ reflect_uniform(int i, char *name_buffer, GLsizei name_buflen) {
|
|||||||
else if (noprefix.compare(7, string::npos, "Emission") == 0) {
|
else if (noprefix.compare(7, string::npos, "Emission") == 0) {
|
||||||
bind._part = Shader::STO_stage_emission_i;
|
bind._part = Shader::STO_stage_emission_i;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
GLCAT.error()
|
||||||
|
<< "Unrecognized shader input name: p3d_" << noprefix << "\n";
|
||||||
|
}
|
||||||
|
|
||||||
for (bind._stage = 0; bind._stage < param_size; ++bind._stage) {
|
for (bind._stage = 0; bind._stage < param_size; ++bind._stage) {
|
||||||
_glgsg->_glUniform1i(p + bind._stage, _shader->_tex_spec.size());
|
_glgsg->_glUniform1i(p + bind._stage, _shader->_tex_spec.size());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user