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 84f3216..eee48f1 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);