summaryrefslogtreecommitdiff
path: root/cubedbus.c
diff options
context:
space:
mode:
authorJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-11-16 20:25:41 +0900
committerJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-11-16 20:25:41 +0900
commitf25a503b0d79ec09a922915d51a3817b20f37a1f (patch)
treeb9dbd6663900b6b6a34873273d0cd0befe1a2727 /cubedbus.c
parentb6e1a7b188db509a31e9b68856425cf12e142f83 (diff)
downloadcubedbus-f25a503b0d79ec09a922915d51a3817b20f37a1f.tar.gz
cubedbus-f25a503b0d79ec09a922915d51a3817b20f37a1f.tar.bz2
Fixed a few things and added the delete functions.
Diffstat (limited to 'cubedbus.c')
-rw-r--r--cubedbus.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cubedbus.c b/cubedbus.c
index b8ec262..9384c20 100644
--- a/cubedbus.c
+++ b/cubedbus.c
@@ -279,6 +279,10 @@ cubedbusDrawColourObject (CubedbusObject *obj)
static bool
cubedbusDeleteColourObject (CubedbusObject *obj)
{
+ CubedbusColourObject *data=obj->data;
+ glDeleteLists (data->dList, 1);
+ free(obj->data);
+ free(obj);
return TRUE;
}
@@ -416,7 +420,7 @@ cubedbusPaintInside (CompScreen *s,
glDisable (GL_LIGHTING);
glDisable (GL_COLOR_MATERIAL);
glEnable (GL_DEPTH_TEST);
-
+ glColor4usv (defaultColor);
/*********************************************/
CubedbusObject *obj=gs->head;