X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fextrusion.c;h=8537da38858e763d90a4996ca485faacebac7ab7;hb=de041722414a2e31c1c04caa10aaec9d6952e9b4;hp=86facfb6f79dbaf98eb5b9f61789838ce75c3c29;hpb=0ed85ca0e4b0eae40a4f50a51d63f2f41e45373a;p=xscreensaver diff --git a/hacks/glx/extrusion.c b/hacks/glx/extrusion.c index 86facfb6..8537da38 100644 --- a/hacks/glx/extrusion.c +++ b/hacks/glx/extrusion.c @@ -29,7 +29,9 @@ #include - +#ifdef HAVE_CONFIG_H +#include +#endif #ifdef STANDALONE # define PROGCLASS "Screensaver" @@ -72,7 +74,11 @@ #include #include #include +#ifdef HAVE_GLE3 +#include +#else #include +#endif #undef countof #define countof(x) (sizeof((x))/sizeof((*x))) @@ -456,8 +462,10 @@ void Create_Texture(char *filename, int do_mipmap, int do_texture_quality) 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); }