From a400a1e4045e2478032bc5b8ae0b794964b24bae Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 14 Sep 2005 00:42:33 +0000 Subject: Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function, call driUpdateFramebufferSize() when window size/position changes. --- src/mesa/drivers/dri/mach64/mach64_lock.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/drivers/dri/mach64/mach64_lock.c') diff --git a/src/mesa/drivers/dri/mach64/mach64_lock.c b/src/mesa/drivers/dri/mach64/mach64_lock.c index 3d41d71b37..b214495d9a 100644 --- a/src/mesa/drivers/dri/mach64/mach64_lock.c +++ b/src/mesa/drivers/dri/mach64/mach64_lock.c @@ -33,6 +33,7 @@ #include "mach64_state.h" #include "mach64_lock.h" #include "mach64_tex.h" +#include "drirenderbuffer.h" #if DEBUG_LOCKING char *prevLockFile = NULL; @@ -73,6 +74,7 @@ void mach64GetLock( mach64ContextPtr mmesa, GLuint flags ) mach64SetCliprects( mmesa->glCtx, GL_BACK_LEFT ); else mach64SetCliprects( mmesa->glCtx, GL_FRONT_LEFT ); + driUpdateFramebufferSize( mmesa->glCtx, dPriv ); mach64CalcViewport( mmesa->glCtx ); } -- cgit v1.2.3