projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10b9d9f
)
mesa: use _mesa_bufferobj_mapped()
author
Brian Paul
<brianp@vmware.com>
Fri, 7 Aug 2009 16:51:03 +0000
(10:51 -0600)
committer
Brian Paul
<brianp@vmware.com>
Sat, 8 Aug 2009 13:30:26 +0000
(07:30 -0600)
src/mesa/main/shared.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/shared.c
b/src/mesa/main/shared.c
index ad6e6ce7cd3cef671397e4a662166cec0d5fe1da..93bbccd3c7fce9ce5f402754192d3a4901043d40 100644
(file)
--- 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;
}