From ff9d235042bb80daf0a6f5af41f7abcb1d552a80 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 14 Sep 2005 00:36:27 +0000 Subject: Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function, call driUpdateFramebufferSize() when window size/position changes. --- src/mesa/drivers/dri/mga/mga_xmesa.c | 2 ++ src/mesa/drivers/dri/mga/mgastate.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mesa/drivers/dri/mga') diff --git a/src/mesa/drivers/dri/mga/mga_xmesa.c b/src/mesa/drivers/dri/mga/mga_xmesa.c index 34f17a2f64..cd524adc44 100644 --- a/src/mesa/drivers/dri/mga/mga_xmesa.c +++ b/src/mesa/drivers/dri/mga/mga_xmesa.c @@ -66,6 +66,7 @@ #include "vblank.h" #include "extensions.h" +#include "drirenderbuffer.h" #include "GL/internal/dri_interface.h" @@ -911,6 +912,7 @@ void mgaGetLock( mgaContextPtr mmesa, GLuint flags ) mmesa->SetupNewInputs |= VERT_BIT_POS; mmesa->dirty_cliprects = (MGA_FRONT|MGA_BACK); mgaUpdateRects( mmesa, (MGA_FRONT|MGA_BACK) ); + driUpdateFramebufferSize(mmesa->glCtx, dPriv); } mmesa->dirty |= MGA_UPLOAD_CONTEXT | MGA_UPLOAD_CLIPRECTS; diff --git a/src/mesa/drivers/dri/mga/mgastate.c b/src/mesa/drivers/dri/mga/mgastate.c index 139a4e2abd..de3654bacb 100644 --- a/src/mesa/drivers/dri/mga/mgastate.c +++ b/src/mesa/drivers/dri/mga/mgastate.c @@ -28,7 +28,6 @@ #include "mtypes.h" -#include "buffers.h" #include "colormac.h" #include "dd.h" @@ -699,8 +698,6 @@ static void mgaViewport( GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height ) { - /* update size of Mesa/software ancillary buffers */ - _mesa_ResizeBuffersMESA(); mgaCalcViewport( ctx ); } -- cgit v1.2.3