r300g: abort on unsupported vertex formats
authorMarek Olšák <maraeo@gmail.com>
Mon, 26 Apr 2010 00:27:03 +0000 (02:27 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 26 Apr 2010 05:21:59 +0000 (07:21 +0200)
src/gallium/drivers/r300/r300_state_inlines.h

index 480d0f7c4ae0c110d9a0c85124bb1792c10a98b8..ca6fc650ed68a98dd94ae8f53b9a94ad89e01455 100644 (file)
@@ -374,6 +374,7 @@ r300_translate_vertex_data_type(enum pipe_format format) {
         fprintf(stderr, "r300: Bad format %s in %s:%d\n", util_format_name(format),
             __FUNCTION__, __LINE__);
         assert(0);
+        abort();
     }
 
     switch (desc->channel[0].type) {
@@ -395,6 +396,7 @@ r300_translate_vertex_data_type(enum pipe_format format) {
                     fprintf(stderr, "r300: Bad format %s in %s:%d\n",
                         util_format_name(format), __FUNCTION__, __LINE__);
                     assert(0);
+                    abort();
             }
             break;
         /* Unsigned ints */
@@ -418,12 +420,14 @@ r300_translate_vertex_data_type(enum pipe_format format) {
                     fprintf(stderr, "r300: desc->channel[0].size == %d\n",
                         desc->channel[0].size);
                     assert(0);
+                    abort();
             }
             break;
         default:
             fprintf(stderr, "r300: Bad format %s in %s:%d\n",
                 util_format_name(format), __FUNCTION__, __LINE__);
             assert(0);
+            abort();
     }
 
     if (desc->channel[0].type == UTIL_FORMAT_TYPE_SIGNED) {