summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2010-01-26 22:16:53 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-01-26 22:18:27 +0200
commit06d228d8b92b7f4031f0596d498c24c4ed952e68 (patch)
tree3513606374f922d984f04cd0ee1af58a0fa19ddd
parent550fc19a5f927b0a95e6aae96c64d094cffe1c36 (diff)
intel: make sure we update the renderbuffers after a swap
Now that LOCK_HARDWARE is gone, we don't have a convenient place to update the renderbuffers everywhere we need them. So grab new buffers when we invalidate the old ones until we optimize things further.
-rw-r--r--src/mesa/drivers/dri/intel/intel_screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index b170317699..96e7f2885a 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -132,6 +132,8 @@ intelDRI2FlushInvalidate(__DRIdrawable *drawable)
intelDRI2Flush(drawable);
drawable->validBuffers = GL_FALSE;
+
+ intel_update_renderbuffers(intel->driContext, drawable);
}
static const struct __DRI2flushExtensionRec intelFlushExtension = {