summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vega/image.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-01-23 11:47:03 -0700
committerBrian Paul <[email protected]>2011-01-24 18:12:49 -0700
commit99c67f27d35a4bbbbefada8117d5972c7583cf42 (patch)
tree4bb72cd2585d317b49894a06e13f488b2664c836 /src/gallium/state_trackers/vega/image.c
parentf3e6edc70b7a8e3a642c9d666863901653105893 (diff)
vega: implement handler/pointer conversion using a hash table
Before, we were just casting between 32-bit VGHandles and 64-bit pointers.
Diffstat (limited to 'src/gallium/state_trackers/vega/image.c')
-rw-r--r--src/gallium/state_trackers/vega/image.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vega/image.c b/src/gallium/state_trackers/vega/image.c
index 318ea94bdfb..73351b671f9 100644
--- a/src/gallium/state_trackers/vega/image.c
+++ b/src/gallium/state_trackers/vega/image.c
@@ -349,6 +349,8 @@ void image_destroy(struct vg_image *img)
array_destroy(img->children_array);
}
+ vg_free_object(&img->base);
+
pipe_sampler_view_reference(&img->sampler_view, NULL);
FREE(img);
}