OSDN Git Service

mesa: use elementBuf local var instead of ctx->Array.ElementArrayBufferObj
authorBrian Paul <brianp@vmware.com>
Wed, 6 May 2009 18:23:28 +0000 (12:23 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 6 May 2009 18:38:35 +0000 (12:38 -0600)
Makes no real difference, but more consistant.

src/mesa/main/api_validate.c

index 42d1e57..1986cbe 100644 (file)
@@ -72,7 +72,7 @@ max_buffer_index(GLcontext *ctx, GLuint count, GLenum type,
    if (map) {
       ctx->Driver.UnmapBuffer(ctx,
                               GL_ELEMENT_ARRAY_BUFFER_ARB,
-                              ctx->Array.ElementArrayBufferObj);
+                              elementBuf);
    }
 
    return max;