X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fflipscreen3d.c;h=8ccc710e2880befed674fa7da1d87638f0c1bbc6;hp=2134fbcfae256ebaba876c623352c86aa27aa864;hb=cccbddbc4140cf9a06d7d95cc5c0ca36eb5d6e28;hpb=a94197e76a5dea5cb60542840809d6c20d0abbf3 diff --git a/hacks/glx/flipscreen3d.c b/hacks/glx/flipscreen3d.c index 2134fbcf..8ccc710e 100644 --- a/hacks/glx/flipscreen3d.c +++ b/hacks/glx/flipscreen3d.c @@ -389,6 +389,12 @@ void getSnapshot (ModeInfo *modeinfo) status = gluBuild2DMipmaps(GL_TEXTURE_2D, 3, ximage->width, ximage->height, GL_RGBA, GL_UNSIGNED_BYTE, ximage->data); + + if (!status && glGetError()) + /* Some implementations of gluBuild2DMipmaps(), but set a GL error anyway. + We could just call check_gl_error(), but that would exit. */ + status = -1; + if (status) { const char *s = gluErrorString (status);