Avoid unnecessary glVertexAttribDivisor calls

This commit is contained in:
rdb 2015-08-11 13:56:47 +02:00
parent 3e6e355577
commit 888efc18af

View File

@ -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;
}