glgsg: Fix for when p3d_Color is set to vec4 type

Fixes #1601
This commit is contained in:
rdb 2024-01-23 15:42:13 +01:00
parent 39d964c4bb
commit ca9b5dd44a

View File

@ -1192,7 +1192,7 @@ reflect_uniform(int i, char *name_buffer, GLsizei name_buflen) {
if (param_type == GL_FLOAT_VEC3) { if (param_type == GL_FLOAT_VEC3) {
bind._piece = Shader::SMP_vec3; bind._piece = Shader::SMP_vec3;
} else if (param_type == GL_FLOAT_VEC4) { } else if (param_type == GL_FLOAT_VEC4) {
bind._piece = Shader::SMP_vec3; bind._piece = Shader::SMP_vec4;
} else { } else {
GLCAT.error() GLCAT.error()
<< "p3d_Color should be vec3 or vec4\n"; << "p3d_Color should be vec3 or vec4\n";