stop crash when debugging
authorDave Airlie <airliedfreedesktop.org>
Mon, 24 May 2004 10:43:43 +0000 (10:43 +0000)
committerDave Airlie <airliedfreedesktop.org>
Mon, 24 May 2004 10:43:43 +0000 (10:43 +0000)
src/mesa/drivers/dri/i830/i830_debug.c

index 84f3216dc045ca72ba367f985b513dafa51b35e4..eee48f1c135b680545a0b7cc636be68c3405e855 100644 (file)
@@ -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);