intel: make sure we update the renderbuffers after a swap
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 26 Jan 2010 20:16:53 +0000 (22:16 +0200)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 26 Jan 2010 20:18:27 +0000 (22:18 +0200)
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.

src/mesa/drivers/dri/intel/intel_screen.c

index b170317699e6b11436ad839731609f4dd05036ea..96e7f2885a39ecfeef628c075ca56a58107c2f87 100644 (file)
@@ -132,6 +132,8 @@ intelDRI2FlushInvalidate(__DRIdrawable *drawable)
 
    intelDRI2Flush(drawable);
    drawable->validBuffers = GL_FALSE;
+
+   intel_update_renderbuffers(intel->driContext, drawable);
 }
 
 static const struct __DRI2flushExtensionRec intelFlushExtension = {