diff options
Diffstat (limited to 'src/gallium/state_trackers/vega/path.c')
-rw-r--r-- | src/gallium/state_trackers/vega/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vega/path.c b/src/gallium/state_trackers/vega/path.c index d7253befd03..e62d1e32288 100644 --- a/src/gallium/state_trackers/vega/path.c +++ b/src/gallium/state_trackers/vega/path.c @@ -192,7 +192,7 @@ struct path * path_create(VGPathDatatype dt, VGfloat scale, VGfloat bias, vg_init_object(&path->base, vg_current_context(), VG_OBJECT_PATH); path->caps = capabilities & VG_PATH_CAPABILITY_ALL; - vg_context_add_object(vg_current_context(), VG_OBJECT_PATH, path); + vg_context_add_object(vg_current_context(), &path->base); path->datatype = dt; path->scale = scale; @@ -224,7 +224,7 @@ static void polygon_array_cleanup(struct polygon_array *polyarray) void path_destroy(struct path *p) { - vg_context_remove_object(vg_current_context(), VG_OBJECT_PATH, p); + vg_context_remove_object(vg_current_context(), &p->base); array_destroy(p->segments); array_destroy(p->control_points); |