summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_context.h
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_context.h
parent8b3cb7c651eeed66e4c6cc719918c4dd792cf9e1 (diff)
vbo: replace assert(0) with unreachable()
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo_context.h')
-rw-r--r--src/mesa/vbo/vbo_context.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/vbo/vbo_context.h b/src/mesa/vbo/vbo_context.h
index 04079b7d329..cd1cbd9641b 100644
--- a/src/mesa/vbo/vbo_context.h
+++ b/src/mesa/vbo/vbo_context.h
@@ -154,7 +154,7 @@ vbo_draw_method(struct vbo_context *vbo, gl_draw_method method)
ctx->Array._DrawArrays = vbo->save.inputs;
break;
default:
- assert(0);
+ unreachable("Bad VBO drawing method");
}
ctx->NewDriverState |= ctx->DriverFlags.NewArray;
@@ -178,7 +178,7 @@ vbo_attrtype_to_integer_flag(GLenum format)
case GL_UNSIGNED_INT64_ARB:
return GL_TRUE;
default:
- assert(0);
+ unreachable("Bad vertex attribute type");
return GL_FALSE;
}
}
@@ -195,7 +195,7 @@ vbo_attrtype_to_double_flag(GLenum format)
case GL_DOUBLE:
return GL_TRUE;
default:
- assert(0);
+ unreachable("Bad vertex attribute type");
return GL_FALSE;
}
}
@@ -218,7 +218,7 @@ vbo_get_default_vals_as_union(GLenum format)
case GL_UNSIGNED_INT:
return (fi_type *)default_int;
default:
- assert(0);
+ unreachable("Bad vertex format");
return NULL;
}
}