diff --git a/panda/src/glstuff/glShaderContext_src.cxx b/panda/src/glstuff/glShaderContext_src.cxx index 2a67e0ba21..5df6c93871 100644 --- a/panda/src/glstuff/glShaderContext_src.cxx +++ b/panda/src/glstuff/glShaderContext_src.cxx @@ -1425,7 +1425,7 @@ update_shader_vertex_arrays(ShaderContext *prev, bool force) { GL_TRUE, stride, client_pointer); } - if (_glgsg->_supports_vertex_attrib_divisor) { + if (_glgsg->_supports_vertex_attrib_divisor && divisor > 0) { _glgsg->_glVertexAttribDivisor(p, divisor); _has_divisor = true; }