diff options
author | lecoanet | 2002-12-20 13:49:35 +0000 |
---|---|---|
committer | lecoanet | 2002-12-20 13:49:35 +0000 |
commit | 1bccc96e1aa9fc02c9db40de26314f8fe0fd8c5a (patch) | |
tree | c6d2c4d7c8491e1b628d1d47db8b4dfbb27056ea /generic/Rectangle.c | |
parent | a44d24a9896a3290c4a3ecd1ff2aa0ea629d41a9 (diff) | |
download | tkzinc-1bccc96e1aa9fc02c9db40de26314f8fe0fd8c5a.zip tkzinc-1bccc96e1aa9fc02c9db40de26314f8fe0fd8c5a.tar.gz tkzinc-1bccc96e1aa9fc02c9db40de26314f8fe0fd8c5a.tar.bz2 tkzinc-1bccc96e1aa9fc02c9db40de26314f8fe0fd8c5a.tar.xz |
Suppression de l'otimisation display list en GL
Diffstat (limited to 'generic/Rectangle.c')
-rw-r--r-- | generic/Rectangle.c | 6 |
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 } |