Mesa (lp-binning): st/mesa: early exit on error path
Keith Whitwell
keithw at kemper.freedesktop.org
Mon Jan 11 12:14:21 UTC 2010
Module: Mesa
Branch: lp-binning
Commit: ad74ea286951634d49d500f2e5ce740072794fe2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ad74ea286951634d49d500f2e5ce740072794fe2
Author: Keith Whitwell <keithw at vmware.com>
Date: Mon Jan 11 12:02:53 2010 +0000
st/mesa: early exit on error path
Can't rely on asserts having any effect on flowcontrol for release
builds.
---
src/mesa/state_tracker/st_cb_condrender.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/state_tracker/st_cb_condrender.c b/src/mesa/state_tracker/st_cb_condrender.c
index 780b40c..e2cd80b 100644
--- a/src/mesa/state_tracker/st_cb_condrender.c
+++ b/src/mesa/state_tracker/st_cb_condrender.c
@@ -69,6 +69,7 @@ st_BeginConditionalRender(GLcontext *ctx, struct gl_query_object *q,
break;
default:
assert(0 && "bad mode in st_BeginConditionalRender");
+ return;
}
pipe->render_condition(pipe, stq->pq, m);
More information about the mesa-commit
mailing list