gallium: don't rely on assert(0) for error handling - may be disabled
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 29 Jan 2008 12:37:07 +0000 (12:37 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 29 Jan 2008 12:38:34 +0000 (12:38 +0000)
src/mesa/state_tracker/st_draw.c

index 8ef50ee768483c60727bd7a31214134f1ed34546..c9b8e78485500d496da6950a509058c218fdd004 100644 (file)
@@ -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,