X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fgleidescope.c;h=8abd7338532f73d75286947cf76125ba4fa70ba0;hb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;hp=3a14f2918eba8c7b798908482e09d8852b979880;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/glx/gleidescope.c b/hacks/glx/gleidescope.c index 3a14f291..8abd7338 100644 --- a/hacks/glx/gleidescope.c +++ b/hacks/glx/gleidescope.c @@ -1,7 +1,7 @@ /* -*- Mode: C; tab-width: 4 -*- */ /* vim: set ai ts=4 sw=4: */ -#if !defined( lint ) && !defined( SABER ) +#if 0 /*static const char sccsid[] = "@(#)gleidescope.c 1.0 03/06/27 xlockmore";*/ #endif @@ -1251,7 +1251,6 @@ draw(ModeInfo * mi) mi->polygon_count = 0; - glClearColor(0.5, 0.5, 0.5, 1.0); 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)); + clear_gl_error(); /* WTF? sometimes "invalid op" from glViewport! */ glDrawBuffer(GL_BACK);