summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/osmesa/osmesa.c
diff options
context:
space:
mode:
authorKarl Schultz <[email protected]>2005-12-08 04:35:07 +0000
committerKarl Schultz <[email protected]>2005-12-08 04:35:07 +0000
commit5bdec89da520f763b6d0faad1781f64566a97fdd (patch)
tree9647a2595f78a1b86cee133a78cc29d9cdee49be /src/mesa/drivers/osmesa/osmesa.c
parent59af97420e19ba382e0e9dd46005e0b720e4b2c5 (diff)
add {} to RENDER_SPAN macro to fix compilation problem
Diffstat (limited to 'src/mesa/drivers/osmesa/osmesa.c')
-rw-r--r--src/mesa/drivers/osmesa/osmesa.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c
index 9d74c33988c..902dee5bf16 100644
--- a/src/mesa/drivers/osmesa/osmesa.c
+++ b/src/mesa/drivers/osmesa/osmesa.c
@@ -460,7 +460,7 @@ osmesa_choose_line_function( GLcontext *ctx )
#define INTERP_ALPHA 1
#define SETUP_CODE \
const OSMesaContext osmesa = OSMESA_CONTEXT(ctx);
-#define RENDER_SPAN( span ) \
+#define RENDER_SPAN( span ) { \
GLuint i; \
GLchan *img = PIXELADDR4(span.x, span.y); \
for (i = 0; i < span.end; i++, img += 4) { \
@@ -476,7 +476,8 @@ osmesa_choose_line_function( GLcontext *ctx )
span.blue += span.blueStep; \
span.alpha += span.alphaStep; \
span.z += span.zStep; \
- }
+ } \
+}
#ifdef WIN32
#include "..\swrast\s_tritemp.h"
#else
@@ -497,7 +498,7 @@ osmesa_choose_line_function( GLcontext *ctx )
PACK_RGBA((GLchan *) &pixel, v2->color[0], v2->color[1], \
v2->color[2], v2->color[3]);
-#define RENDER_SPAN( span ) \
+#define RENDER_SPAN( span ) { \
GLuint i; \
GLuint *img = (GLuint *) PIXELADDR4(span.x, span.y); \
for (i = 0; i < span.end; i++) { \
@@ -507,7 +508,8 @@ osmesa_choose_line_function( GLcontext *ctx )
zRow[i] = z; \
} \
span.z += span.zStep; \
- }
+ } \
+}
#ifdef WIN32
#include "..\swrast\s_tritemp.h"
#else