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/ffb/ffb_xmesa.c | |
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/ffb/ffb_xmesa.c')
-rw-r--r-- | src/mesa/drivers/dri/ffb/ffb_xmesa.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/ffb/ffb_xmesa.c b/src/mesa/drivers/dri/ffb/ffb_xmesa.c index baf4885a3be..ab2a6688bab 100644 --- a/src/mesa/drivers/dri/ffb/ffb_xmesa.c +++ b/src/mesa/drivers/dri/ffb/ffb_xmesa.c @@ -59,6 +59,8 @@ #include "drm_sarea.h" +#include "drirenderbuffer.h" + static GLboolean ffbInitDriver(__DRIscreenPrivate *sPriv) { @@ -595,9 +597,11 @@ void ffbXMesaUpdateState(ffbContextPtr fmesa) GLcontext *ctx = fmesa->glCtx; ffbCalcViewport(ctx); - if (ctx->Polygon.StippleFlag) + driUpdateFramebufferSize(ctx, dPriv); + if (ctx->Polygon.StippleFlag) { ffbXformAreaPattern(fmesa, (const GLubyte *)ctx->PolygonStipple); + } } } |