Mesa (master): mesa: use elementBuf local var instead of ctx->Array. ElementArrayBufferObj

Brian Paul brianp at kemper.freedesktop.org
Wed May 6 18:39:01 UTC 2009


Module: Mesa
Branch: master
Commit: a13df193c23f9202ade6f16643e3ef529cff772b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a13df193c23f9202ade6f16643e3ef529cff772b

Author: Brian Paul <brianp at vmware.com>
Date:   Wed May  6 12:23:28 2009 -0600

mesa: use elementBuf local var instead of ctx->Array.ElementArrayBufferObj

Makes no real difference, but more consistant.

---

 src/mesa/main/api_validate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
index 42d1e57..1986cbe 100644
--- a/src/mesa/main/api_validate.c
+++ b/src/mesa/main/api_validate.c
@@ -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;




More information about the mesa-commit mailing list