summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2014-11-11 10:20:49 +0000
committerIan Romanick <[email protected]>2014-12-02 12:16:28 -0800
commit331b0120d16445dd8d5b8d049946ae7845fb714b (patch)
tree469abc9cfd50608223d81df342f11abc061b7020 /src/mesa
parent304c466bd87abb5a29d4d5a6cba35faaafdeab3b (diff)
mesa: Use unreachable instead of assert in check_valid_to_render
This is generally the prefered style these days. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/api_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
index 181a61de999..304d576d9b8 100644
--- a/src/mesa/main/api_validate.c
+++ b/src/mesa/main/api_validate.c
@@ -113,7 +113,7 @@ check_valid_to_render(struct gl_context *ctx, const char *function)
break;
default:
- assert(!"Invalid API value in check_valid_to_render()");
+ unreachable("Invalid API value in check_valid_to_render()");
}
return GL_TRUE;