aboutsummaryrefslogtreecommitdiff
path: root/generic/Item.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Item.c')
-rw-r--r--generic/Item.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/Item.c b/generic/Item.c
index 9a9cfc1..c66e7b4 100644
--- a/generic/Item.c
+++ b/generic/Item.c
@@ -1833,8 +1833,10 @@ ZnCreateItem(WidgetInfo *wi,
item->parent = NULL;
item->connected_item = ZN_NO_ITEM;
#ifdef GLX
+#ifdef GL_LIST
item->gl_list = 0;
#endif
+#endif
ResetBBox(&item->item_bounding_box);
/* Init item specific attributes */
@@ -2512,6 +2514,7 @@ Invalidate(Item item,
/*printf("invalidate graphics for item %d\n", item->id);*/
ZnDamage(item->wi, &item->item_bounding_box);
#ifdef GLX
+#ifdef GL_LIST
/*
* Remove the item display list so that it will be recreated
* to reflect the changes.
@@ -2521,6 +2524,7 @@ Invalidate(Item item,
item->gl_list = 0;
}
#endif
+#endif
}
}
}