X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fpulsar.c;h=a6125c8154ed3a3e6b02feb0a01761ee19fbed3d;hb=de041722414a2e31c1c04caa10aaec9d6952e9b4;hp=a6b971b77e8d1b7f7ac889c557d79b4aa31e3f1e;hpb=93f25dc6827112d98b8b855ea85c8f5eb8123086;p=xscreensaver diff --git a/hacks/glx/pulsar.c b/hacks/glx/pulsar.c index a6b971b7..a6125c81 100644 --- a/hacks/glx/pulsar.c +++ b/hacks/glx/pulsar.c @@ -606,9 +606,13 @@ void Create_Texture(char *filename) /* mipmaps make the image look much nicer */ if (do_mipmap) a=gluBuild2DMipmaps(GL_TEXTURE_2D, format, width, height, format, GL_UNSIGNED_BYTE, image); - else - glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, - format, GL_UNSIGNED_BYTE, image); + else + { + clear_gl_error(); + glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, + format, GL_UNSIGNED_BYTE, image); + check_gl_error("texture"); + } free(image); }