X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fextrusion.c;h=07a82dc4bd08513a5f6955cffc4f8ab6f98c82de;hp=683486518f98155b1654cfe669557d461d5fdb87;hb=6a1da724858673ac40aa13a9612340d8bed8c7b9;hpb=96bdd7cf6ea60c418a76921acaf0e34d6f5be930 diff --git a/hacks/glx/extrusion.c b/hacks/glx/extrusion.c index 68348651..07a82dc4 100644 --- a/hacks/glx/extrusion.c +++ b/hacks/glx/extrusion.c @@ -273,7 +273,7 @@ void Create_Texture(ModeInfo *mi, const char *filename) { XImage *ximage = xpm_file_to_ximage (MI_DISPLAY (mi), MI_VISUAL (mi), MI_COLORMAP (mi), filename); - image = ximage->data; + image = (GLubyte *) ximage->data; width = ximage->width; height = ximage->height; format = GL_RGBA; @@ -308,7 +308,7 @@ void Create_Texture(ModeInfo *mi, const char *filename) GL_UNSIGNED_BYTE, image); if (status) { - const char *s = gluErrorString (status); + const char *s = (char *) gluErrorString (status); fprintf (stderr, "%s: error mipmapping %dx%d texture: %s\n", progname, width, height, (s ? s : "(unknown)"));