mesa: silence MSVC signed/unsigned comparision warnings in transformfeedback.c
authorBrian Paul <brianp@vmware.com>
Sat, 27 Oct 2012 14:58:19 +0000 (08:58 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 29 Oct 2012 23:56:04 +0000 (17:56 -0600)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/transformfeedback.c

index 0669b3a2526a764b8c0b64172155a67b87278944..1afc0dccb323c5d785e474fcaa18d09582e508e2 100644 (file)
@@ -277,7 +277,7 @@ _mesa_BeginTransformFeedback(GLenum mode)
 {
    struct gl_transform_feedback_object *obj;
    struct gl_transform_feedback_info *info;
-   int i;
+   GLuint i;
    GET_CURRENT_CONTEXT(ctx);
 
    obj = ctx->TransformFeedback.CurrentObject;
@@ -537,7 +537,7 @@ _mesa_TransformFeedbackVaryings(GLuint program, GLsizei count,
                                 const GLchar **varyings, GLenum bufferMode)
 {
    struct gl_shader_program *shProg;
-   GLuint i;
+   GLint i;
    GET_CURRENT_CONTEXT(ctx);
 
    switch (bufferMode) {
@@ -648,7 +648,7 @@ _mesa_GetTransformFeedbackVarying(GLuint program, GLuint index,
    }
 
    linked_xfb_info = &shProg->LinkedTransformFeedback;
-   if (index >= linked_xfb_info->NumVarying) {
+   if (index >= (GLuint) linked_xfb_info->NumVarying) {
       _mesa_error(ctx, GL_INVALID_VALUE,
                   "glGetTransformFeedbackVaryings(index=%u)", index);
       return;