aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-04-23 10:57:45 -0600
committerBrian Paul <[email protected]>2013-04-23 21:09:17 -0600
commitf74da3e98807f788d3e830ef9f12e3ddfc99eac8 (patch)
tree86ba2f261ef73b9b4a08d0117240ed021f2b9675 /src/mesa/main/context.h
parent976b529b7c977e11a487c61d92bc5037cfd32155 (diff)
mesa: use new _mesa_inside_dlist_begin_end() function
Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r--src/mesa/main/context.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index 05251849b57..396cbd2d63d 100644
--- a/src/mesa/main/context.h
+++ b/src/mesa/main/context.h
@@ -201,6 +201,17 @@ _mesa_inside_begin_end(const struct gl_context *ctx)
/**
+ * Are we currently between glBegin and glEnd in a display list?
+ */
+static inline GLboolean
+_mesa_inside_dlist_begin_end(const struct gl_context *ctx)
+{
+ return ctx->Driver.CurrentSavePrimitive != PRIM_OUTSIDE_BEGIN_END;
+}
+
+
+
+/**
* \name Macros for flushing buffered rendering commands before state changes,
* checking if inside glBegin/glEnd, etc.
*/