Code cleanup: fix a few harmless warnings.
[blender.git] / source / blender / draw / intern / draw_manager_data.c
index f8d4cb6655fe7af7865eef3e6823de208319e680..20a859d48e2072334ad19910af7ba5710c78605e 100644 (file)
@@ -465,8 +465,7 @@ static void drw_interface_batching_init(
                case DRW_SHG_POINT_BATCH: type = GWN_PRIM_POINTS; break;
                case DRW_SHG_LINE_BATCH: type = GWN_PRIM_LINES; break;
                case DRW_SHG_TRIANGLE_BATCH: type = GWN_PRIM_TRIS; break;
-               default:
-                       BLI_assert(0);
+               default: type = GWN_PRIM_NONE; BLI_assert(0); break;
        }
 
        DRW_batching_buffer_request(DST.idatalist, format, type, shgroup,