X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fnoof.c;h=2132b7e8f5b91156d16365b2e18dac15cb0e77b1;hp=e273082058dfc9503fd305d1d6852a3060162c97;hb=6b1c86cf395f59389e4ece4ea8f4bea2c332745b;hpb=488f2fa8fbdbc77e91a70da2962d73af49e6cace diff --git a/hacks/glx/noof.c b/hacks/glx/noof.c index e2730820..2132b7e8 100644 --- 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(); - 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); } - bp = &bps[MI_SCREEN(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);