summaryrefslogtreecommitdiffstats
path: root/libdimension/texture.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-05-28 18:16:04 -0600
committerTavian Barnes <tavianator@gmail.com>2011-05-28 18:16:04 -0600
commit4479d25609e26253c4e5fcfc78b093c0b45cefb8 (patch)
tree4f931d4d1d78e4915f99134e563a9d14faba7a33 /libdimension/texture.c
parentefd3c1c2b42ffda0c8f7e5cd9b03fba07eead1ea (diff)
downloaddimension-4479d25609e26253c4e5fcfc78b093c0b45cefb8.tar.xz
Don't allocate reference counts on the heap.
Diffstat (limited to 'libdimension/texture.c')
-rw-r--r--libdimension/texture.c3
1 files changed, 1 insertions, 2 deletions
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);