summaryrefslogtreecommitdiffstats
path: root/libdimension/texture.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-12-24 13:19:38 -0500
committerTavian Barnes <tavianator@gmail.com>2011-12-24 13:19:38 -0500
commita8181915a4aac7a37bdd62705e2eac1067eb1904 (patch)
tree4e90ce29b5fad0d34f268e5ac9d247c3ef034a3f /libdimension/texture.c
parentbabba43cd4d1b9c92a569f19acbe17e429193b01 (diff)
downloaddimension-a8181915a4aac7a37bdd62705e2eac1067eb1904.tar.xz
Use macros to initialize refcounts.
Diffstat (limited to 'libdimension/texture.c')
-rw-r--r--libdimension/texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/texture.c b/libdimension/texture.c
index 3018bcd..24ff9af 100644
--- a/libdimension/texture.c
+++ b/libdimension/texture.c
@@ -33,8 +33,8 @@ dmnsn_new_texture(void)
texture->pigment = NULL;
texture->finish = dmnsn_new_finish();
texture->trans = dmnsn_identity_matrix();
- texture->refcount = 1;
texture->initialized = false;
+ DMNSN_REFCOUNT_INIT(texture);
return texture;
}