st/vega: fix vg_context_is_object_valid()
authorChia-I Wu <olv@lunarg.com>
Wed, 21 Sep 2011 02:48:21 +0000 (10:48 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 21 Sep 2011 04:01:03 +0000 (12:01 +0800)
commitceb6d34906c7c03c102c7e78dd02f5b0ebab4ca9
tree061792f65d8f8c0daffeabd24ee0be8531fba533
parentbdddf1cc26541d730bac309bd63dfdcaf4aea513
st/vega: fix vg_context_is_object_valid()

vg_context_is_object_valid() checks if a handle is valid by checking if
the handle is a valid key of the object hash table.  However, the keys
of the object hash table were object pointers.

Fix vg_context_add_object() to use the handles as the keys so that
vg_context_is_object_valid() works.  This bug was introduced by
99c67f27d35a4bbbbefada8117d5972c7583cf42.
src/gallium/state_trackers/vega/image.c
src/gallium/state_trackers/vega/mask.c
src/gallium/state_trackers/vega/paint.c
src/gallium/state_trackers/vega/path.c
src/gallium/state_trackers/vega/text.c
src/gallium/state_trackers/vega/vg_context.c
src/gallium/state_trackers/vega/vg_context.h