intel: Skip the DRI2 renderbuffer update when doing Viewport on an FBO.
[mesa.git] / src / mesa / drivers / dri / common / drirenderbuffer.c
index b99bf2033b2fdc4e6033e34a357072a2409e6b41..15af99136cd7cd590737484e88d8f1b3cb65c5a4 100644 (file)
@@ -209,6 +209,8 @@ driUpdateFramebufferSize(GLcontext *ctx, const __DRIdrawablePrivate *dPriv)
    struct gl_framebuffer *fb = (struct gl_framebuffer *) dPriv->driverPrivate;
    if (fb && (dPriv->w != fb->Width || dPriv->h != fb->Height)) {
       ctx->Driver.ResizeBuffers(ctx, fb, dPriv->w, dPriv->h);
+      /* if the driver needs the hw lock for ResizeBuffers, the drawable
+         might have changed again by now */
       assert(fb->Width == dPriv->w);
       assert(fb->Height == dPriv->h);
    }