summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_manager.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-03-13 17:00:24 +0800
committerChia-I Wu <[email protected]>2010-03-13 17:01:27 +0800
commitf91d8c6885c8944322991115b739cee3e2fdf6bd (patch)
treeb3c35dd6fb4963f8c6df104119145c1350e9dbce /src/mesa/state_tracker/st_manager.c
parent813c58d77e21cb59adb914b4b4ee26be758ff0ea (diff)
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.
Diffstat (limited to 'src/mesa/state_tracker/st_manager.c')
-rw-r--r--src/mesa/state_tracker/st_manager.c3
1 files changed, 2 insertions, 1 deletions
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;