From: Jesse Barnes Date: Tue, 26 Jan 2010 20:16:53 +0000 (+0200) Subject: intel: make sure we update the renderbuffers after a swap X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06d228d8b92b7f4031f0596d498c24c4ed952e68;p=mesa.git 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. --- diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index b170317699e..96e7f2885a3 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 = {