From f91d8c6885c8944322991115b739cee3e2fdf6bd Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sat, 13 Mar 2010 17:00:24 +0800 Subject: st/mesa: Set revalidate in st_framebuffer_update_attachments. There are two conditions that a validation is required. One is when the the framebuffer becomes invalid. The other is when we request for textures that we did not request before. --- src/mesa/state_tracker/st_manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index f0dda4be6e9..9475704121c 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -226,6 +226,8 @@ st_framebuffer_update_attachments(struct st_framebuffer *stfb) st_visual_have_buffers(stfb->iface->visual, 1 << statt)) stfb->statts[stfb->num_statts++] = statt; } + + p_atomic_set(&stfb->revalidate, TRUE); } /** @@ -438,7 +440,6 @@ st_framebuffer_create(struct st_framebuffer_iface *stfbi) st_framebuffer_update_attachments(stfb); - p_atomic_set(&stfb->revalidate, TRUE); stfb->Base.Initialized = GL_TRUE; return stfb; -- cgit v1.2.3