Browse Source

Merge remote-tracking branch 'origin/release/1.9.x'

rdb 10 years ago
parent
commit
8764cb8222
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/glstuff/glShaderContext_src.cxx

+ 1 - 1
panda/src/glstuff/glShaderContext_src.cxx

@@ -1977,7 +1977,7 @@ update_shader_vertex_arrays(ShaderContext *prev, bool force) {
                                            normalized, stride, client_pointer);
           }
 
-          if (_glgsg->_supports_vertex_attrib_divisor) {
+          if (_glgsg->_supports_vertex_attrib_divisor && divisor > 0) {
             _glgsg->_glVertexAttribDivisor(p, divisor);
             _has_divisor = true;
           }