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/i830 | |
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/i830')
-rw-r--r-- | src/mesa/drivers/dri/i830/i830_context.c | 3 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i830/i830_state.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i830/i830_context.c b/src/mesa/drivers/dri/i830/i830_context.c index 45fcbd2e3b6..45c3ca57f47 100644 --- a/src/mesa/drivers/dri/i830/i830_context.c +++ b/src/mesa/drivers/dri/i830/i830_context.c @@ -63,7 +63,7 @@ #include "i830_tris.h" #include "i830_ioctl.h" - +#include "drirenderbuffer.h" #include "utils.h" #define need_GL_ARB_multisample @@ -573,6 +573,7 @@ void i830GetLock( i830ContextPtr imesa, GLuint flags ) */ if (sarea->ctxOwner != me) { + driUpdateFramebufferSize(imesa->glCtx, dPriv); imesa->upload_cliprects = GL_TRUE; imesa->dirty |= (I830_UPLOAD_CTX | I830_UPLOAD_BUFFERS | diff --git a/src/mesa/drivers/dri/i830/i830_state.c b/src/mesa/drivers/dri/i830/i830_state.c index 13e25596629..55211f20a09 100644 --- a/src/mesa/drivers/dri/i830/i830_state.c +++ b/src/mesa/drivers/dri/i830/i830_state.c @@ -36,7 +36,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "glheader.h" -#include "buffers.h" #include "context.h" #include "macros.h" #include "enums.h" @@ -1227,8 +1226,6 @@ static void i830Viewport( GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height ) { - /* update size of Mesa/software ancillary buffers */ - _mesa_ResizeBuffersMESA(); i830CalcViewport( ctx ); } |