summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-02-21 15:11:44 -0700
committerBrian Paul <[email protected]>2011-02-21 15:15:52 -0700
commit0ba2810e47d68ec24a93c5fc74cf99afe50e8c9b (patch)
tree65d127b881d55c206f45885bc6493e5b4a952eb3 /src/mesa/vbo
parentae4b6e04cdea188f6b5e656a1aafb6c3343fe5a7 (diff)
vbo: replace assert(0) with proper assertions
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r--src/mesa/vbo/vbo_exec_draw.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/vbo/vbo_exec_draw.c b/src/mesa/vbo/vbo_exec_draw.c
index f8be83ea84e..38c86516ad8 100644
--- 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) {