projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.jwz.org/xscreensaver/xscreensaver-5.13.tar.gz
[xscreensaver]
/
hacks
/
glx
/
gleidescope.c
diff --git
a/hacks/glx/gleidescope.c
b/hacks/glx/gleidescope.c
index 3a14f2918eba8c7b798908482e09d8852b979880..54074e65f84a8eb792d0cb4a064fb2b4523225d1 100644
(file)
--- a/
hacks/glx/gleidescope.c
+++ b/
hacks/glx/gleidescope.c
@@
-1251,7
+1251,6
@@
draw(ModeInfo * mi)
mi->polygon_count = 0;
mi->polygon_count = 0;
- glClearColor(0.5, 0.5, 0.5, 1.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
@@
-1543,6
+1542,7
@@
init_gleidescope(ModeInfo * mi)
if ((gp->glx_context = init_GL(mi)) != NULL) {
reshape_gleidescope(mi, MI_WIDTH(mi), MI_HEIGHT(mi));
if ((gp->glx_context = init_GL(mi)) != NULL) {
reshape_gleidescope(mi, MI_WIDTH(mi), MI_HEIGHT(mi));
+ clear_gl_error(); /* WTF? sometimes "invalid op" from glViewport! */
glDrawBuffer(GL_BACK);
glDrawBuffer(GL_BACK);