From b88cebb634d74772fa509f5ca88fb71d397b3d85 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 26 Apr 2013 14:42:10 +0200 Subject: [PATCH] st/mesa: don't check for _NEW_PROGRAM when binding UBOs Probably copied from i965. However st/mesa has its flags ST_NEW_xxx_PROGRAM. Reviewed-by: Brian Paul --- src/mesa/state_tracker/st_atom_constbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/state_tracker/st_atom_constbuf.c b/src/mesa/state_tracker/st_atom_constbuf.c index f72af7af529..27a910b5fca 100644 --- a/src/mesa/state_tracker/st_atom_constbuf.c +++ b/src/mesa/state_tracker/st_atom_constbuf.c @@ -229,7 +229,7 @@ static void bind_vs_ubos(struct st_context *st) const struct st_tracked_state st_bind_vs_ubos = { "st_bind_vs_ubos", { - _NEW_PROGRAM, + 0, ST_NEW_VERTEX_PROGRAM | ST_NEW_UNIFORM_BUFFER, }, bind_vs_ubos @@ -248,7 +248,7 @@ static void bind_fs_ubos(struct st_context *st) const struct st_tracked_state st_bind_fs_ubos = { "st_bind_fs_ubos", { - _NEW_PROGRAM, + 0, ST_NEW_FRAGMENT_PROGRAM | ST_NEW_UNIFORM_BUFFER, }, bind_fs_ubos -- 2.30.2