aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/Item.c4
-rw-r--r--generic/Item.h2
2 files changed, 6 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
}
}
}
diff --git a/generic/Item.h b/generic/Item.h
index a413270..b44604c 100644
--- a/generic/Item.h
+++ b/generic/Item.h
@@ -109,8 +109,10 @@ typedef struct _ItemStruct {
struct _ZnTransfo *transfo;
struct _ItemStruct *connected_item; /* Item this item is connected to */
#ifdef GLX
+#ifdef GL_LIST
GLuint gl_list; /* Display list storing the item graphics */
#endif
+#endif
} ItemStruct, *Item;
typedef struct _ToAreaStruct {