mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Fix GLSL bug on nvidia cards with disabling vertex attribs
This commit is contained in:
parent
b60fce49b5
commit
875f4d9ddf
@ -977,7 +977,9 @@ disable_shader_vertex_arrays() {
|
||||
}
|
||||
|
||||
for (int i=0; i<(int)_shader->_var_spec.size(); i++) {
|
||||
_glgsg->_glDisableVertexAttribArray(i);
|
||||
const Shader::ShaderVarSpec &bind = _shader->_var_spec[i];
|
||||
const GLint p = _glsl_parameter_map[bind._id._seqno];
|
||||
_glgsg->_glDisableVertexAttribArray(p);
|
||||
}
|
||||
|
||||
_glgsg->report_my_gl_errors();
|
||||
|
Loading…
x
Reference in New Issue
Block a user