projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.tienza.es/crux/src/www.jwz.org/xscreensaver/xscreensaver-5.05.tar.gz
[xscreensaver]
/
hacks
/
glx
/
noof.c
diff --git
a/hacks/glx/noof.c
b/hacks/glx/noof.c
index e273082058dfc9503fd305d1d6852a3060162c97..2132b7e8f5b91156d16365b2e18dac15cb0e77b1 100644
(file)
--- a/
hacks/glx/noof.c
+++ b/
hacks/glx/noof.c
@@
-399,7
+399,9
@@
draw_noof (ModeInfo *mi)
if (mi->fps_p) do_fps (mi);
glFinish();
if (mi->fps_p) do_fps (mi);
glFinish();
- glXSwapBuffers(MI_DISPLAY(mi), MI_WINDOW(mi));
+/* For some reason this hack screws up on Cocoa if we try to double-buffer it.
+ It looks fine single-buffered, so let's just do that. */
+/* glXSwapBuffers(MI_DISPLAY(mi), MI_WINDOW(mi)); */
}
}
@@
-442,13
+444,13
@@
init_noof (ModeInfo *mi)
fprintf(stderr, "%s: out of memory\n", progname);
exit(1);
}
fprintf(stderr, "%s: out of memory\n", progname);
exit(1);
}
- bp = &bps[MI_SCREEN(mi)];
}
bp = &bps[MI_SCREEN(mi)];
bp->glx_context = init_GL(mi);
}
bp = &bps[MI_SCREEN(mi)];
bp->glx_context = init_GL(mi);
+ glDrawBuffer(GL_FRONT);
glClearColor(0.0, 0.0, 0.0, 1.0);
glEnable(GL_LINE_SMOOTH);
glShadeModel(GL_FLAT);
glClearColor(0.0, 0.0, 0.0, 1.0);
glEnable(GL_LINE_SMOOTH);
glShadeModel(GL_FLAT);