projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cc5522
)
Fix typos that meant vbos were never unmapped
author
Keith Whitwell
<keith@tungstengraphics.com>
Mon, 20 Nov 2006 15:15:24 +0000
(15:15 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Mon, 20 Nov 2006 15:15:24 +0000
(15:15 +0000)
src/mesa/main/api_arrayelt.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/api_arrayelt.c
b/src/mesa/main/api_arrayelt.c
index 3c26c2c590a83fea4a9c3a3dd1dcabad8ad3c9ac..804700118f2ebbb416d0eb603f4523cf42f6d8f0 100644
(file)
--- a/
src/mesa/main/api_arrayelt.c
+++ b/
src/mesa/main/api_arrayelt.c
@@
-1228,18
+1228,17
@@
void _ae_unmap_vbos( GLcontext *ctx )
AEcontext *actx = AE_CONTEXT(ctx);
GLuint i;
- if (actx->mapped_vbos)
+ if (
!
actx->mapped_vbos)
return;
- if (actx->NewState)
- _ae_update_state(ctx);
+ assert (!actx->NewState);
for (i = 0; i < actx->nr_vbos; i++)
ctx->Driver.UnmapBuffer(ctx,
GL_ARRAY_BUFFER_ARB,
actx->vbo[i]);
- actx->mapped_vbos = GL_
TRU
E;
+ actx->mapped_vbos = GL_
FALS
E;
}