summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vega/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/vega/text.c')
-rw-r--r--src/gallium/state_trackers/vega/text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vega/text.c b/src/gallium/state_trackers/vega/text.c
index 6714ee9ad35..a183933c364 100644
--- a/src/gallium/state_trackers/vega/text.c
+++ b/src/gallium/state_trackers/vega/text.c
@@ -138,7 +138,7 @@ struct vg_font *font_create(VGint glyphCapacityHint)
vg_init_object(&font->base, ctx, VG_OBJECT_FONT);
font->glyphs = cso_hash_create();
- vg_context_add_object(ctx, VG_OBJECT_FONT, font);
+ vg_context_add_object(ctx, &font->base);
return font;
}
@@ -148,7 +148,7 @@ void font_destroy(struct vg_font *font)
struct vg_context *ctx = vg_current_context();
struct cso_hash_iter iter;
- vg_context_remove_object(ctx, VG_OBJECT_FONT, font);
+ vg_context_remove_object(ctx, &font->base);
iter = cso_hash_first_node(font->glyphs);
while (!cso_hash_iter_is_null(iter)) {