aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
authorlecoanet2002-12-20 13:52:49 +0000
committerlecoanet2002-12-20 13:52:49 +0000
commit5fc4ad987e7f0965eea40445053ffd35e8bccfa8 (patch)
tree36ce3e64ab4f9432a858ddb8aede9e84401e68d1 /generic
parent709009bfb836f4bac7ff74318b295349df1a4a9d (diff)
downloadtkzinc-5fc4ad987e7f0965eea40445053ffd35e8bccfa8.zip
tkzinc-5fc4ad987e7f0965eea40445053ffd35e8bccfa8.tar.gz
tkzinc-5fc4ad987e7f0965eea40445053ffd35e8bccfa8.tar.bz2
tkzinc-5fc4ad987e7f0965eea40445053ffd35e8bccfa8.tar.xz
Suppression de l'optimisation display list en GL
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 {