projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.23.tar.gz
[xscreensaver]
/
hacks
/
glx
/
gllist.c
diff --git
a/hacks/glx/gllist.c
b/hacks/glx/gllist.c
index e2f27285661299a10f0d4d84799728c48c996596..d404d6be1580e137c98c839d4d9171537f58af3a 100644
(file)
--- a/
hacks/glx/gllist.c
+++ b/
hacks/glx/gllist.c
@@
-1,8
+1,9
@@
#include "gllist.h"
#include "gllist.h"
-void renderList(
struct gllist *list
){
+void renderList(
const struct gllist *list, int wire_p
){
for(;list!=NULL;list=list->next){
glInterleavedArrays(list->format,0,list->data);
for(;list!=NULL;list=list->next){
glInterleavedArrays(list->format,0,list->data);
- glDrawArrays(list->primitive,0,list->points);
+ glDrawArrays((wire_p ? GL_LINE_LOOP : list->primitive),
+ 0,list->points);
}
}
}
}