vbo: use GLuint for numInstances to silence MSVC warnings
authorBrian Paul <brianp@vmware.com>
Sun, 4 Nov 2012 23:43:44 +0000 (16:43 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Nov 2012 14:42:37 +0000 (07:42 -0700)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_exec_array.c

index e058497..04930b9 100644 (file)
@@ -50,7 +50,7 @@ struct _mesa_prim {
    GLuint start;
    GLuint count;
    GLint basevertex;
-   GLsizei num_instances;
+   GLuint num_instances;
    GLuint base_instance;
 };
 
index d857ac3..4b2c529 100644 (file)
@@ -779,7 +779,7 @@ vbo_validated_drawrangeelements(struct gl_context *ctx, GLenum mode,
                                GLuint start, GLuint end,
                                GLsizei count, GLenum type,
                                const GLvoid *indices,
-                               GLint basevertex, GLint numInstances,
+                               GLint basevertex, GLuint numInstances,
                                GLuint baseInstance)
 {
    struct vbo_context *vbo = vbo_context(ctx);