From 179cc373f1ecb4d65a413fdc64c74f98e27dac79 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 30 Dec 2004 17:47:08 +0000 Subject: Get scissor test working again. Passes glean scissor test. --- src/mesa/drivers/dri/unichrome/via_context.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/unichrome/via_context.c') 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 { -- cgit v1.2.3