diff options
author | rillig <rillig@pkgsrc.org> | 2006-01-26 15:16:16 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-01-26 15:16:16 +0000 |
commit | 60a7b37834cfaabeb7510c03dbd5504c7db70918 (patch) | |
tree | 0feb4f49ae0c3b83279fa279c096489661545a64 /graphics/MesaLib/patches | |
parent | cfb3b40116e782e8319a48b575945367ab37a317 (diff) | |
download | pkgsrc-60a7b37834cfaabeb7510c03dbd5504c7db70918.tar.gz |
Added patch-ak, which fixes the bulk build for NetBSD 1.6.2/i386.
Diffstat (limited to 'graphics/MesaLib/patches')
-rw-r--r-- | graphics/MesaLib/patches/patch-ak | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/graphics/MesaLib/patches/patch-ak b/graphics/MesaLib/patches/patch-ak new file mode 100644 index 00000000000..a8a6ed3244a --- /dev/null +++ b/graphics/MesaLib/patches/patch-ak @@ -0,0 +1,25 @@ +$NetBSD: patch-ak,v 1.1 2006/01/26 15:16:16 rillig Exp $ + +Declarations inside of macros are evil. Even more if they are not preceded +by an additional opening brace. + +--- src/mesa/swrast/s_triangle.c.orig 2006-01-23 21:27:28.000000000 +0100 ++++ src/mesa/swrast/s_triangle.c 2006-01-23 21:27:06.000000000 +0100 +@@ -163,6 +163,7 @@ _swrast_culltriangle( GLcontext *ctx, + } + + #define RENDER_SPAN( span ) \ ++{ \ + GLuint i; \ + span.intTex[0] -= FIXED_HALF; /* off-by-one error? */ \ + span.intTex[1] -= FIXED_HALF; \ +@@ -177,7 +178,8 @@ _swrast_culltriangle( GLcontext *ctx, + span.intTex[0] += span.intTexStep[0]; \ + span.intTex[1] += span.intTexStep[1]; \ + } \ +- rb->PutRowRGB(ctx, rb, span.end, span.x, span.y, span.array->rgb, NULL); ++ rb->PutRowRGB(ctx, rb, span.end, span.x, span.y, span.array->rgb, NULL); \ ++} + + #include "s_tritemp.h" + |