summaryrefslogtreecommitdiffstats
path: root/libdimension/texture.c
diff options
context:
space:
mode:
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);