diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-04-08 14:04:15 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-04-08 14:04:15 +0200 |
commit | 917675217256480163d437015253d1d2b6cad55c (patch) | |
tree | 9c3c1edffb54642789bad267255964e4504c8c57 /src/mesa/drivers/dri/i915tex/intel_context.c | |
parent | 79bf6924208136247bca2d5f70547f2fe359ecdb (diff) |
i915tex: Clean up resizing of renderbuffers.
Diffstat (limited to 'src/mesa/drivers/dri/i915tex/intel_context.c')
-rw-r--r-- | src/mesa/drivers/dri/i915tex/intel_context.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i915tex/intel_context.c b/src/mesa/drivers/dri/i915tex/intel_context.c index a2b0856fde..6a3456e154 100644 --- a/src/mesa/drivers/dri/i915tex/intel_context.c +++ b/src/mesa/drivers/dri/i915tex/intel_context.c @@ -587,10 +587,11 @@ intelMakeCurrent(__DRIcontextPrivate * driContextPriv, } /* set GLframebuffer size to match window, if needed */ - if (driReadPriv != driDrawPriv && readFb->Width != driReadPriv->w) { - _mesa_resize_framebuffer(&intel->ctx, readFb, - driReadPriv->w, driReadPriv->h); - } + driUpdateFramebufferSize(&intel->ctx, driDrawPriv); + + if (driReadPriv != driDrawPriv) { + driUpdateFramebufferSize(&intel->ctx, driReadPriv); + } _mesa_make_current(&intel->ctx, &intel_fb->Base, readFb); |