summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/api_arrayelt.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-06-07 12:43:27 +1000
committerTimothy Arceri <[email protected]>2017-06-09 09:13:46 +1000
commit99987fe92e5e109d7a0c114477cba52cdc6629b5 (patch)
tree7948f3be293617402f563115f53f3cb28e382368 /src/mesa/main/api_arrayelt.c
parentf77740f14b9057de09e61e1abf086f08a68c5a1b (diff)
mesa: rework vbo_exec_init()
Here we make some assumptions about the AEcontext and set the recalculate bools directly. Some formating fixes are also made while we are here. Reviewed-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/api_arrayelt.c')
-rw-r--r--src/mesa/main/api_arrayelt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/api_arrayelt.c b/src/mesa/main/api_arrayelt.c
index 46175e4cc74..8eb523dd525 100644
--- a/src/mesa/main/api_arrayelt.c
+++ b/src/mesa/main/api_arrayelt.c
@@ -94,6 +94,13 @@ TYPE_IDX(GLenum t)
}
+bool
+_ae_is_state_dirty(struct gl_context *ctx)
+{
+ return AE_CONTEXT(ctx)->NewState;
+}
+
+
#define NUM_TYPES 8