aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generic/Rectangle.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/Rectangle.c b/generic/Rectangle.c
index 3a630da..81f3258 100644
--- a/generic/Rectangle.c
+++ b/generic/Rectangle.c
@@ -637,10 +637,11 @@ Render(Item item)
XColor *color;
int i, alpha;
+#ifdef GL_LIST
if (!item->gl_list) {
item->gl_list = glGenLists(1);
glNewList(item->gl_list, GL_COMPILE);
-
+#endif
if (ISSET(rect->flags, FILLED_BIT)) {
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
@@ -692,12 +693,13 @@ Render(Item item)
NULL, NULL, rect->line_color);
}
}
-
+#ifdef GL_LIST
glEndList();
}
glCallList(item->gl_list);
#endif
+#endif
}