r200: unref swtcl buffer correctly
authorDave Airlie <airlied@redhat.com>
Thu, 29 Jan 2009 13:03:34 +0000 (23:03 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 29 Jan 2009 13:03:34 +0000 (23:03 +1000)
src/mesa/drivers/dri/r200/r200_swtcl.c

index 663e4ae..3142f8b 100644 (file)
@@ -297,6 +297,7 @@ static void flush_last_swtcl_prim(GLcontext *ctx)
                     rmesa->swtcl.hw_primitive,
                     rmesa->swtcl.numverts);
 
+   radeon_bo_unref(rmesa->swtcl.bo);
    //   COMMIT_BATCH();
    rmesa->swtcl.numverts = 0;
 }