summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-01-29 12:37:07 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2008-01-29 12:38:34 +0000
commitc185c55aec8c6d0e47a2d7b84acf7d063acfce61 (patch)
treec0ff1e15dec71fb13ae0ddb3e9130d1652949af8 /src/mesa/state_tracker
parentf94425b316b57ad19ce067a449b20ebee50064f9 (diff)
gallium: don't rely on assert(0) for error handling - may be disabled
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_draw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index 8ef50ee768..c9b8e78485 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -298,6 +298,7 @@ st_draw_vbo(GLcontext *ctx,
break;
default:
assert(0);
+ return;
}
/* get/create the index buffer object */
@@ -570,6 +571,7 @@ st_feedback_draw_vbo(GLcontext *ctx,
break;
default:
assert(0);
+ return;
}
map = pipe->winsys->buffer_map(pipe->winsys,