diff options
author | José Fonseca <[email protected]> | 2009-06-15 19:17:07 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-06-15 19:17:07 +0100 |
commit | 37f2117cd132527ebf89f9294b2f35db87326460 (patch) | |
tree | ace69fbc5534a3afb8a40356625141c46d971f71 /src/mesa/main/api_validate.c | |
parent | c33ef1f7c6d93a82c77a6c11fd108bb6d4f8c6af (diff) |
mesa: Use integer type with appropriate sign.
Diffstat (limited to 'src/mesa/main/api_validate.c')
-rw-r--r-- | src/mesa/main/api_validate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c index 42d1e579e08..2c6f370df94 100644 --- a/src/mesa/main/api_validate.c +++ b/src/mesa/main/api_validate.c @@ -40,7 +40,7 @@ max_buffer_index(GLcontext *ctx, GLuint count, GLenum type, { const GLubyte *map = NULL; GLuint max = 0; - GLint i; + GLuint i; if (elementBuf->Name) { /* elements are in a user-defined buffer object. need to map it */ @@ -224,7 +224,7 @@ _mesa_validate_DrawRangeElements(GLcontext *ctx, GLenum mode, /* Vertex buffer object tests */ if (ctx->Array.ElementArrayBufferObj->Name) { /* use indices in the buffer object */ - GLuint indexBytes; + GLsizei indexBytes; if (type == GL_UNSIGNED_INT) { indexBytes = count * sizeof(GLuint); |