From: Dave Airlie Date: Mon, 24 May 2004 10:43:43 +0000 (+0000) Subject: stop crash when debugging X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=257e474474b929b9a407e284601c8665cdc42111;p=mesa.git stop crash when debugging --- 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);