From 6cec977773c87ac95ca66089eb50850c9f0a27ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Hellstr=C3=B6m?= Date: Sat, 18 Dec 2004 12:16:12 +0000 Subject: [PATCH] Unichrome DRI driver: Fix for proplem where polygons partly outside the drawing window would get one vertex clamped to the opposite window side. This bug could also cause a hardlock. (Bugzilla #2066, Yann Vernier) --- src/mesa/drivers/dri/unichrome/via_vb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/unichrome/via_vb.c b/src/mesa/drivers/dri/unichrome/via_vb.c index f0a0edfbd15..dd3027ca76e 100644 --- a/src/mesa/drivers/dri/unichrome/via_vb.c +++ b/src/mesa/drivers/dri/unichrome/via_vb.c @@ -72,7 +72,7 @@ static struct { #define GET_VIEWPORT_MAT() VIA_CONTEXT(ctx)->ViewportMatrix.m #define GET_TEXSOURCE(n) n #define GET_VERTEX_FORMAT() VIA_CONTEXT(ctx)->vertexSize -#define GET_VERTEX_SIZE() VIA_CONTEXT(ctx)->vertexSize +#define GET_VERTEX_SIZE() (1<verts #define GET_VERTEX_STRIDE_SHIFT() VIA_CONTEXT(ctx)->vertexStrideShift #define GET_UBYTE_COLOR_STORE() &VIA_CONTEXT(ctx)->UbyteColor -- 2.30.2