diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-30 17:47:08 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-30 17:47:08 +0000 |
commit | 179cc373f1ecb4d65a413fdc64c74f98e27dac79 (patch) | |
tree | e4af3ee5672e040ec5d62dfe4d96d31f3d7169e9 /src/mesa/drivers/dri/unichrome/via_context.c | |
parent | c664f0c5155da800c34de1783754313e86654eda (diff) |
Get scissor test working again. Passes glean scissor test.
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_context.c')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_context.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_context.c b/src/mesa/drivers/dri/unichrome/via_context.c index 4c70af60c8..2fa1eb4f9c 100644 --- a/src/mesa/drivers/dri/unichrome/via_context.c +++ b/src/mesa/drivers/dri/unichrome/via_context.c @@ -661,8 +661,16 @@ viaMakeCurrent(__DRIcontextPrivate *driContextPriv, (GLframebuffer *)driDrawPriv->driverPrivate, (GLframebuffer *)driReadPriv->driverPrivate); if (VIA_DEBUG) fprintf(stderr, "Context %d MakeCurrent\n", vmesa->hHWContext); - viaXMesaWindowMoved(vmesa); - + + /* These are probably needed only the first time a context is + * made current: + */ + viaXMesaWindowMoved(vmesa); + ctx->Driver.Scissor(ctx, + ctx->Scissor.X, + ctx->Scissor.Y, + ctx->Scissor.Width, + ctx->Scissor.Height); } else { |