summaryrefslogtreecommitdiffstats
path: root/libdimension/csg.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-05-16 16:42:35 -0600
committerTavian Barnes <tavianator@gmail.com>2011-05-16 16:42:35 -0600
commit0f9bef055788c60cd4f6621a46b047abb86bc193 (patch)
tree2d97e7d7ead0f9f2c545c800c9789b30070b3aa6 /libdimension/csg.c
parent0a51cc868eafe72a98d64e48d8b2ba30a7d8f5dc (diff)
downloaddimension-0f9bef055788c60cd4f6621a46b047abb86bc193.tar.xz
Consolidate reference counting code.
Diffstat (limited to 'libdimension/csg.c')
-rw-r--r--libdimension/csg.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libdimension/csg.c b/libdimension/csg.c
index 05f0b60..caecee0 100644
--- a/libdimension/csg.c
+++ b/libdimension/csg.c
@@ -32,12 +32,10 @@ dmnsn_csg_cascade(const dmnsn_object *csg, dmnsn_object *object)
{
if (!object->texture && csg->texture) {
object->texture = csg->texture;
- ++*object->texture->refcount;
}
if (!object->interior && csg->interior) {
object->interior = csg->interior;
- ++*object->interior->refcount;
}
object->trans = dmnsn_matrix_mul(csg->trans, object->trans);