projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.02.tar.gz
[xscreensaver]
/
hacks
/
glx
/
flipscreen3d.c
diff --git
a/hacks/glx/flipscreen3d.c
b/hacks/glx/flipscreen3d.c
index 2134fbcfae256ebaba876c623352c86aa27aa864..8ccc710e2880befed674fa7da1d87638f0c1bbc6 100644
(file)
--- 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);
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);
if (status)
{
const char *s = gluErrorString (status);