]> git.tdb.fi Git - libs/gl.git/blobdiff - source/batch.cpp
Fix a comparison with restart_index
[libs/gl.git] / source / batch.cpp
index d6924a80e0cc56378d7f20b892b04ee0bb251453..3f7bffee901da3bfab572e197a44da13ff912741 100644 (file)
@@ -229,7 +229,7 @@ void Batch::draw() const
                        restart_index = index;
                }
        }
-       else if(restart_index && restart_index<max_index)
+       else if(restart_index && restart_index<=max_index)
        {
                glDisableClientState(GL_PRIMITIVE_RESTART_NV);
                restart_index = 0;