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

Author: Brian Paul <[email protected]>
Date:   Fri Aug  7 10:51:03 2009 -0600

mesa: use _mesa_bufferobj_mapped()

---

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

diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c
index ad6e6ce..93bbccd 100644
--- a/src/mesa/main/shared.c
+++ b/src/mesa/main/shared.c
@@ -196,7 +196,7 @@ delete_bufferobj_cb(GLuint id, void *data, void *userData)
 {
    struct gl_buffer_object *bufObj = (struct gl_buffer_object *) data;
    GLcontext *ctx = (GLcontext *) userData;
-   if (bufObj->Pointer) {
+   if (_mesa_bufferobj_mapped(bufObj)) {
       ctx->Driver.UnmapBuffer(ctx, 0, bufObj);
       bufObj->Pointer = NULL;
    }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to