From 4482f96c59d7d0f0b19329e997fb59dba3e84119 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 7 Aug 2009 10:51:03 -0600 Subject: [PATCH] mesa: use _mesa_bufferobj_mapped() --- src/mesa/main/shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c index ad6e6ce7cd3..93bbccd3c7f 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; } -- 2.30.2