summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorKarl Schultz <kschultz@freedesktop.org>2005-12-07 05:09:14 +0000
committerKarl Schultz <kschultz@freedesktop.org>2005-12-07 05:09:14 +0000
commit98bebc7212a47f97ef6d15d4fca45a0fa608aea2 (patch)
treea292bcac9932b9d8ed2250705a1917de5d2f0bca /src/mesa
parentabccd5b729209086e77b2b2f53fb2cdfdcf75a8e (diff)
Fix bugzilla 5253. Add {} around code in RENDER_SPAN macros when code includes a variable declaration.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/swrast/s_triangle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_triangle.c b/src/mesa/swrast/s_triangle.c
index 1e3d76874a..056446b17b 100644
--- a/src/mesa/swrast/s_triangle.c
+++ b/src/mesa/swrast/s_triangle.c
@@ -162,7 +162,7 @@ _swrast_culltriangle( GLcontext *ctx,
return; \
}
-#define RENDER_SPAN( span ) \
+#define RENDER_SPAN( span ) { \
GLuint i; \
span.intTex[0] -= FIXED_HALF; /* off-by-one error? */ \
span.intTex[1] -= FIXED_HALF; \
@@ -177,7 +177,7 @@ _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"
@@ -213,7 +213,7 @@ _swrast_culltriangle( GLcontext *ctx,
return; \
}
-#define RENDER_SPAN( span ) \
+#define RENDER_SPAN( span ) { \
GLuint i; \
span.intTex[0] -= FIXED_HALF; /* off-by-one error? */ \
span.intTex[1] -= FIXED_HALF; \
@@ -238,7 +238,7 @@ _swrast_culltriangle( GLcontext *ctx,
span.z += span.zStep; \
} \
rb->PutRowRGB(ctx, rb, span.end, span.x, span.y, \
- span.array->rgb, span.array->mask);
+ span.array->rgb, span.array->mask); }
#include "s_tritemp.h"