diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2015-03-26 15:14:22 -0400 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-04-08 18:45:32 +0100 |
commit | 407365e375ca7ba78d95c2e3f189a837201bcc22 (patch) | |
tree | feca9c3107d8abc24a58350910111dbbeaafe4bb | |
parent | 712466fb53b5f5086159a8bb883adfdf169f4f00 (diff) | |
download | mesa-407365e375ca7ba78d95c2e3f189a837201bcc22.tar.gz |
st/mesa: update arrays when the current attrib has been updated
Fixes the recently-sent gl-2.0-vertex-const-attr piglit test. Makes sure
to revalidate arrays when only the current attribute has been updated
via glVertexAttrib*.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89754
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: "10.4 10.5" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 9d1b5febb62d74c9fc564635d4e0fa5207928c46)
-rw-r--r-- | src/mesa/state_tracker/st_atom_array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c index 9b52f97798b..d4fb8b862f6 100644 --- a/src/mesa/state_tracker/st_atom_array.c +++ b/src/mesa/state_tracker/st_atom_array.c @@ -598,7 +598,7 @@ static void update_array(struct st_context *st) const struct st_tracked_state st_update_array = { "st_update_array", /* name */ { /* dirty */ - 0, /* mesa */ + _NEW_CURRENT_ATTRIB, /* mesa */ ST_NEW_VERTEX_ARRAYS | ST_NEW_VERTEX_PROGRAM, /* st */ }, update_array /* update */ |