diff options
author | Brian Paul <[email protected]> | 2005-09-14 00:36:27 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-14 00:36:27 +0000 |
commit | ff9d235042bb80daf0a6f5af41f7abcb1d552a80 (patch) | |
tree | 072f5e9684e019d3309b942ef7ee038fe027df4f /src/mesa/drivers/dri/gamma | |
parent | 48799287b3e88105cdf3f83e97e8bb4a90f8650b (diff) |
Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
call driUpdateFramebufferSize() when window size/position changes.
Diffstat (limited to 'src/mesa/drivers/dri/gamma')
-rw-r--r-- | src/mesa/drivers/dri/gamma/gamma_lock.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/gamma/gamma_state.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/gamma/gamma_lock.c b/src/mesa/drivers/dri/gamma/gamma_lock.c index 4c0970f0908..2ab387fa27d 100644 --- a/src/mesa/drivers/dri/gamma/gamma_lock.c +++ b/src/mesa/drivers/dri/gamma/gamma_lock.c @@ -2,6 +2,7 @@ #include "gamma_context.h" #include "gamma_lock.h" +#include "drirenderbuffer.h" #ifdef DEBUG_LOCKING char *prevLockFile = NULL; @@ -35,6 +36,7 @@ void gammaGetLock( gammaContextPtr gmesa, GLuint flags ) DRI_VALIDATE_DRAWABLE_INFO( sPriv, dPriv ); if ( gmesa->lastStamp != dPriv->lastStamp ) { + driUpdateFramebufferSize(gmesa->glCtx, dPriv); gmesa->lastStamp = dPriv->lastStamp; gmesa->new_state |= GAMMA_NEW_WINDOW | GAMMA_NEW_CLIP; } diff --git a/src/mesa/drivers/dri/gamma/gamma_state.c b/src/mesa/drivers/dri/gamma/gamma_state.c index 3edf009c787..026ff5efbff 100644 --- a/src/mesa/drivers/dri/gamma/gamma_state.c +++ b/src/mesa/drivers/dri/gamma/gamma_state.c @@ -1099,8 +1099,6 @@ void gammaUpdateWindow( GLcontext *ctx ) static void gammaDDViewport( GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height ) { - /* update size of Mesa/software ancillary buffers */ - _mesa_ResizeBuffersMESA(); gammaUpdateWindow( ctx ); } |