summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_save_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/vbo/vbo_save_api.c')
-rw-r--r--src/mesa/vbo/vbo_save_api.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c
index 1c575448773..49939ed3cef 100644
--- a/src/mesa/vbo/vbo_save_api.c
+++ b/src/mesa/vbo/vbo_save_api.c
@@ -174,7 +174,7 @@ copy_vertices(struct gl_context *ctx,
sz * sizeof(GLfloat));
return i;
default:
- assert(0);
+ unreachable("Unexpected primitive type");
return 0;
}
}
@@ -675,8 +675,7 @@ copy_from_current(struct gl_context *ctx)
save->attrptr[i][0] = save->current[i][0];
break;
case 0:
- assert(0);
- break;
+ unreachable("Unexpected vertex attribute size");
}
}
}