projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae4b6e0
)
vbo: replace assert(0) with proper assertions
author
Brian Paul
<brianp@vmware.com>
Mon, 21 Feb 2011 22:11:44 +0000
(15:11 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 21 Feb 2011 22:15:52 +0000
(15:15 -0700)
src/mesa/vbo/vbo_exec_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_exec_draw.c
b/src/mesa/vbo/vbo_exec_draw.c
index f8be83ea84eb72106e8002bbcbb316a7d6f9618f..38c86516ad8217647f8a7ec6245d623900435947 100644
(file)
--- a/
src/mesa/vbo/vbo_exec_draw.c
+++ b/
src/mesa/vbo/vbo_exec_draw.c
@@
-301,11
+301,8
@@
vbo_exec_vtx_map( struct vbo_exec_context *exec )
if (!_mesa_is_bufferobj(exec->vtx.bufferobj))
return;
- if (exec->vtx.buffer_map != NULL) {
- assert(0);
- exec->vtx.buffer_map = NULL;
- exec->vtx.buffer_ptr = NULL;
- }
+ assert(!exec->vtx.buffer_map);
+ assert(!exec->vtx.buffer_ptr);
if (VBO_VERT_BUFFER_SIZE > exec->vtx.buffer_used + 1024 &&
ctx->Driver.MapBufferRange) {