summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/tdfx
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-09-14 00:36:27 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-09-14 00:36:27 +0000
commitff9d235042bb80daf0a6f5af41f7abcb1d552a80 (patch)
tree072f5e9684e019d3309b942ef7ee038fe027df4f /src/mesa/drivers/dri/tdfx
parent48799287b3e88105cdf3f83e97e8bb4a90f8650b (diff)
Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
call driUpdateFramebufferSize() when window size/position changes.
Diffstat (limited to 'src/mesa/drivers/dri/tdfx')
-rw-r--r--src/mesa/drivers/dri/tdfx/tdfx_lock.c3
-rw-r--r--src/mesa/drivers/dri/tdfx/tdfx_state.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_lock.c b/src/mesa/drivers/dri/tdfx/tdfx_lock.c
index 6bbfb8d3a2..ae3ba1a832 100644
--- a/src/mesa/drivers/dri/tdfx/tdfx_lock.c
+++ b/src/mesa/drivers/dri/tdfx/tdfx_lock.c
@@ -41,6 +41,8 @@
#include "tdfx_texman.h"
#include "tdfx_tris.h"
+#include "drirenderbuffer.h"
+
void tdfxGetLock( tdfxContextPtr fxMesa )
{
@@ -84,6 +86,7 @@ void tdfxGetLock( tdfxContextPtr fxMesa )
if ( *dPriv->pStamp != stamp || saPriv->ctxOwner != fxMesa->hHWContext ) {
tdfxUpdateClipping(fxMesa->glCtx);
tdfxUploadClipping(fxMesa);
+ driUpdateFramebufferSize(fxMesa->glCtx, dPriv);
}
DEBUG_LOCK();
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_state.c b/src/mesa/drivers/dri/tdfx/tdfx_state.c
index 28d2f13ea8..1869de4737 100644
--- a/src/mesa/drivers/dri/tdfx/tdfx_state.c
+++ b/src/mesa/drivers/dri/tdfx/tdfx_state.c
@@ -40,7 +40,6 @@
*/
#include "mtypes.h"
-#include "buffers.h"
#include "colormac.h"
#include "texformat.h"
#include "texstore.h"
@@ -906,8 +905,6 @@ static void tdfxDDViewport( GLcontext *ctx, GLint x, GLint y,
GLsizei w, GLsizei h )
{
tdfxContextPtr fxMesa = TDFX_CONTEXT(ctx);
- /* update size of Mesa/software ancillary buffers */
- _mesa_ResizeBuffersMESA();
FLUSH_BATCH( fxMesa );
fxMesa->new_state |= TDFX_NEW_VIEWPORT;
}