From: Brian Paul Date: Fri, 7 Aug 2009 16:51:03 +0000 (-0600) Subject: mesa: use _mesa_bufferobj_mapped() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4482f96c59d7d0f0b19329e997fb59dba3e84119;p=mesa.git mesa: use _mesa_bufferobj_mapped() --- 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; }