diff options
author | Brian Paul <[email protected]> | 2009-08-07 10:51:03 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-08 07:30:26 -0600 |
commit | 4482f96c59d7d0f0b19329e997fb59dba3e84119 (patch) | |
tree | 35706999694b547ce64f06381e2d9d3c8f10706b /src | |
parent | 10b9d9f89528971475138b50487e0c4735987a24 (diff) |
mesa: use _mesa_bufferobj_mapped()
Diffstat (limited to 'src')
-rw-r--r-- | 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 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; } |