summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_exec_draw.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2018-01-17 12:54:04 -0700
committerBrian Paul <[email protected]>2018-01-24 10:12:49 -0700
commitcb7ef0df00e19d87d4d2dd95aff2318df2e17dc3 (patch)
treeeadea518a10248af631f7d16694fa0ff01ee2193 /src/mesa/vbo/vbo_exec_draw.c
parent8b3cb7c651eeed66e4c6cc719918c4dd792cf9e1 (diff)
vbo: replace assert(0) with unreachable()
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo_exec_draw.c')
-rw-r--r--src/mesa/vbo/vbo_exec_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/vbo/vbo_exec_draw.c b/src/mesa/vbo/vbo_exec_draw.c
index 3aff97e6f11..080d50c10e9 100644
--- a/src/mesa/vbo/vbo_exec_draw.c
+++ b/src/mesa/vbo/vbo_exec_draw.c
@@ -159,7 +159,7 @@ vbo_copy_vertices(struct vbo_exec_context *exec)
case PRIM_OUTSIDE_BEGIN_END:
return 0;
default:
- assert(0);
+ unreachable("Unexpected primitive type");
return 0;
}
}
@@ -220,7 +220,7 @@ vbo_exec_bind_arrays(struct gl_context *ctx)
}
break;
default:
- assert(0);
+ unreachable("Bad vertex program mode");
}
for (attr = 0; attr < VERT_ATTRIB_MAX ; attr++) {