summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-04-18 10:47:10 -0600
committerBrian Paul <brianp@vmware.com>2012-04-20 07:32:33 -0600
commitb0e048f0b955ef79e2de794172de053d27d7d8fa (patch)
treea34dbcb7643b89f8a2686c135d04f6d5eb12bf1b /src/mesa/main/state.c
parent0615eb8fc3e516f56c27cddb6206f4e53142506c (diff)
downloadexternal_mesa3d-b0e048f0b955ef79e2de794172de053d27d7d8fa.zip
external_mesa3d-b0e048f0b955ef79e2de794172de053d27d7d8fa.tar.gz
external_mesa3d-b0e048f0b955ef79e2de794172de053d27d7d8fa.tar.bz2
mesa: move gl_array_attrib::NewState to gl_array_object::NewArrays
The field wasn't actually used before and it's not used now either. But this is a more logical place for it and will hopefully allow doing smarter draw/array validation (per array object) in the future. Reviewed-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index f82e4a2..db0cc30 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -580,7 +580,7 @@ _mesa_update_state_locked( struct gl_context *ctx )
new_state = ctx->NewState | new_prog_state;
ctx->NewState = 0;
ctx->Driver.UpdateState(ctx, new_state);
- ctx->Array.NewState = 0;
+ ctx->Array.ArrayObj->NewArrays = 0x0;
}