From 0b994ef5893c0fb59b36f2a723f74aa7c35e8502 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 15 Jun 2006 12:47:29 +0000 Subject: [PATCH] Call _mesa_resize_framebuffer() within intelWindowMoved(). Fixes googleearth glitches. --- src/mesa/drivers/dri/i915/intel_context.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i915/intel_context.c b/src/mesa/drivers/dri/i915/intel_context.c index abd7f61eb3f..54b0960c565 100644 --- a/src/mesa/drivers/dri/i915/intel_context.c +++ b/src/mesa/drivers/dri/i915/intel_context.c @@ -552,6 +552,8 @@ void intelSetBackClipRects( intelContextPtr intel ) void intelWindowMoved( intelContextPtr intel ) { + __DRIdrawablePrivate *dPriv = intel->driDrawable; + if (!intel->ctx.DrawBuffer) { intelSetFrontClipRects( intel ); } @@ -571,6 +573,10 @@ void intelWindowMoved( intelContextPtr intel ) } } + _mesa_resize_framebuffer(&intel->ctx, + (GLframebuffer*)dPriv->driverPrivate, + dPriv->w, dPriv->h); + /* Set state we know depends on drawable parameters: */ { -- 2.30.2