summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2004-05-24 10:43:43 +0000
committerDave Airlie <airliedfreedesktop.org>2004-05-24 10:43:43 +0000
commit257e474474b929b9a407e284601c8665cdc42111 (patch)
tree6ffcaa1656bc6868c6b6950f375a2ef9a4a66b6b /src
parent9e29536f285a9ce3f23305417c50e96a6514ed54 (diff)
stop crash when debugging
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i830/i830_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i830/i830_debug.c b/src/mesa/drivers/dri/i830/i830_debug.c
index 84f3216dc04..eee48f1c135 100644
--- a/src/mesa/drivers/dri/i830/i830_debug.c
+++ b/src/mesa/drivers/dri/i830/i830_debug.c
@@ -291,7 +291,7 @@ void i830VertexSanity( i830ContextPtr imesa, drmI830Vertex vertex )
remaining / vfmt_size);
}
}
- if (1) {
+ if (vfmt_size) {
fprintf(stderr, "\n\nPrim name (%s), vertices (%d)\n",
prim_name,
size / vfmt_size);