nvfx: fix vertex programs
authorLuca Barbieri <luca@luca-barbieri.com>
Sun, 22 Aug 2010 12:53:49 +0000 (14:53 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Sun, 22 Aug 2010 13:42:16 +0000 (15:42 +0200)
src/gallium/drivers/nvfx/nvfx_vertprog.c

index 996680e..3c3521e 100644 (file)
@@ -1272,4 +1272,6 @@ nvfx_vertprog_destroy(struct nvfx_context *nvfx, struct nvfx_vertex_program *vp)
        vp->data_start_min = 0;
 
        vp->ir = vp->or = vp->clip_ctrl = 0;
+       util_dynarray_fini(&vp->branch_relocs);
+       util_dynarray_fini(&vp->const_relocs);
 }