From: Keith Whitwell Date: Tue, 29 Jan 2008 12:37:07 +0000 (+0000) Subject: gallium: don't rely on assert(0) for error handling - may be disabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88469bf544b62fb0786d88383901914140afa56c;p=mesa.git gallium: don't rely on assert(0) for error handling - may be disabled --- 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,