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 663e4ae0bc63b9b3f08704145f52512c230932d6..3142f8b6c9486f3aab5d1e52c274c2492a889709 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;
 }