From 4479d25609e26253c4e5fcfc78b093c0b45cefb8 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 28 May 2011 18:16:04 -0600 Subject: Don't allocate reference counts on the heap. --- libdimension/texture.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libdimension/texture.c') diff --git a/libdimension/texture.c b/libdimension/texture.c index 2199103..c65c913 100644 --- a/libdimension/texture.c +++ b/libdimension/texture.c @@ -33,7 +33,7 @@ dmnsn_new_texture(void) texture->pigment = NULL; texture->finish = NULL; texture->trans = dmnsn_identity_matrix(); - texture->refcount = dmnsn_new_refcount(); + texture->refcount = 0; texture->should_init = true; return texture; } @@ -43,7 +43,6 @@ void dmnsn_delete_texture(dmnsn_texture *texture) { if (texture && DMNSN_DECREF(texture)) { - dmnsn_delete_refcount(texture->refcount); dmnsn_delete_finish(texture->finish); dmnsn_delete_pigment(texture->pigment); dmnsn_free(texture); -- cgit v1.2.3