diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2008-01-29 12:37:07 +0000 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2008-02-15 13:50:25 +1100 |
commit | 88469bf544b62fb0786d88383901914140afa56c (patch) | |
tree | 029e5e9e08b3a1a13199454cf13e214421914372 /src/mesa/state_tracker | |
parent | 2da0724e99785c2bf854fc8a7ba40765b0563088 (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.c | 2 |
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, |