diff options
author | Brian Paul <[email protected]> | 2005-09-14 00:42:33 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-14 00:42:33 +0000 |
commit | a400a1e4045e2478032bc5b8ae0b794964b24bae (patch) | |
tree | 8d2523636fad20c93fa042acd8ee6598f4a2a855 /src/mesa/drivers/dri/mach64 | |
parent | f157e2dee4741bec74f83040a604628c09e2aef7 (diff) |
Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
call driUpdateFramebufferSize() when window size/position changes.
Diffstat (limited to 'src/mesa/drivers/dri/mach64')
-rw-r--r-- | src/mesa/drivers/dri/mach64/mach64_lock.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/mach64/mach64_state.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/mach64/mach64_lock.c b/src/mesa/drivers/dri/mach64/mach64_lock.c index 3d41d71b371..b214495d9a6 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 ); } diff --git a/src/mesa/drivers/dri/mach64/mach64_state.c b/src/mesa/drivers/dri/mach64/mach64_state.c index 14d387ab90f..b9881cd941d 100644 --- a/src/mesa/drivers/dri/mach64/mach64_state.c +++ b/src/mesa/drivers/dri/mach64/mach64_state.c @@ -37,7 +37,6 @@ #include "mach64_tex.h" #include "context.h" -#include "buffers.h" #include "enums.h" #include "colormac.h" #include "swrast/swrast.h" @@ -647,8 +646,6 @@ static void mach64Viewport( GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height ) { - /* update size of Mesa/software ancillary buffers */ - _mesa_ResizeBuffersMESA(); mach64CalcViewport( ctx ); } |