summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2004-02-05 06:39:20 +0000
committerDave Airlie <airliedfreedesktop.org>2004-02-05 06:39:20 +0000
commit540bb3a8303a051ba690d7d9ecaee4d83b74cdbb (patch)
tree92b88cce4248153c9e8854e3a04c9f5599676508 /src
parentb3063ac398b72e6a4fd2015d4e220495b9779294 (diff)
fix ugly bug triggered by macro expansion
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i810/i810render.c2
-rw-r--r--src/mesa/drivers/dri/i830/i830_render.c2
-rw-r--r--src/mesa/drivers/dri/mga/mgarender.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i810/i810render.c b/src/mesa/drivers/dri/i810/i810render.c
index c674378953..bb8db8dbcd 100644
--- a/src/mesa/drivers/dri/i810/i810render.c
+++ b/src/mesa/drivers/dri/i810/i810render.c
@@ -107,7 +107,7 @@ static const GLenum reduced_prim[GL_POLYGON+1] = {
(I810_DMA_BUF_SZ-4) / (imesa->vertex_size * 4)
#define ALLOC_VERTS( nr ) \
- i810AllocDmaLow( imesa, nr * imesa->vertex_size * 4)
+ i810AllocDmaLow( imesa, (nr) * imesa->vertex_size * 4)
#define EMIT_VERTS( ctx, j, nr, buf ) \
i810_emit_contiguous_verts(ctx, j, (j)+(nr), buf)
diff --git a/src/mesa/drivers/dri/i830/i830_render.c b/src/mesa/drivers/dri/i830/i830_render.c
index c1564a54e5..498384bdb2 100644
--- a/src/mesa/drivers/dri/i830/i830_render.c
+++ b/src/mesa/drivers/dri/i830/i830_render.c
@@ -124,7 +124,7 @@ static const int scale_prim[GL_POLYGON+1] = {
#define ALLOC_VERTS( nr ) \
- i830AllocDmaLow( imesa, nr * imesa->vertex_size * 4)
+ i830AllocDmaLow( imesa, (nr) * imesa->vertex_size * 4)
#define EMIT_VERTS( ctx, j, nr, buf ) \
_tnl_emit_vertices_to_buffer(ctx, j, (j)+(nr), buf)
diff --git a/src/mesa/drivers/dri/mga/mgarender.c b/src/mesa/drivers/dri/mga/mgarender.c
index 3dd15e21a6..a7de390be6 100644
--- a/src/mesa/drivers/dri/mga/mgarender.c
+++ b/src/mesa/drivers/dri/mga/mgarender.c
@@ -109,7 +109,7 @@ static void mgaDmaPrimitive( GLcontext *ctx, GLenum prim )
#define ALLOC_VERTS( nr ) \
- mgaAllocDmaLow( mmesa, nr * mmesa->vertex_size * 4)
+ mgaAllocDmaLow( mmesa, (nr) * mmesa->vertex_size * 4)
#define EMIT_VERTS( ctx, j, nr, buf ) \
mga_emit_contiguous_verts(ctx, j, (j)+(nr), buf)