diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2006-11-20 15:15:24 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2006-11-20 15:15:24 +0000 |
commit | 479aca6bf10b9546deb523f42bc3be48b17081cf (patch) | |
tree | cb55576d4e91c7150b19b4660f15495d3a34a163 /src/mesa | |
parent | 7cc5522f86026a5058e4594a51685e96de2ca91a (diff) |
Fix typos that meant vbos were never unmapped
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/api_arrayelt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/main/api_arrayelt.c b/src/mesa/main/api_arrayelt.c index 3c26c2c590..804700118f 100644 --- 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_TRUE; + actx->mapped_vbos = GL_FALSE; } |