summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/unichrome/via_context.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2004-12-30 17:47:08 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2004-12-30 17:47:08 +0000
commit179cc373f1ecb4d65a413fdc64c74f98e27dac79 (patch)
treee4af3ee5672e040ec5d62dfe4d96d31f3d7169e9 /src/mesa/drivers/dri/unichrome/via_context.c
parentc664f0c5155da800c34de1783754313e86654eda (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.c12
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 {