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 e0584973f9ee35be1f72f9956f754c08fbec2602..04930b971da052ad3e6b8b076ee8b86aa6aea8ea 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 d857ac3e52f3e572b46b499bc21bf357fcb6941c..4b2c5298d1c94322c8ccc5359c3451192e3aff0d 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);