diff options
author | Keith Whitwell <[email protected]> | 2008-01-29 12:37:07 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-01-29 12:38:34 +0000 |
commit | c185c55aec8c6d0e47a2d7b84acf7d063acfce61 (patch) | |
tree | c0ff1e15dec71fb13ae0ddb3e9130d1652949af8 /src/mesa/state_tracker | |
parent | f94425b316b57ad19ce067a449b20ebee50064f9 (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 8ef50ee7684..c9b8e784855 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, |