X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fgflux.c;h=f9b1cb2ec6193761e82fc0a96d331017c7e8d84d;hp=ad14d01f2c1827e3a9f95f5ac99c03c4d905738b;hb=6a1da724858673ac40aa13a9612340d8bed8c7b9;hpb=96bdd7cf6ea60c418a76921acaf0e34d6f5be930 diff --git a/hacks/glx/gflux.c b/hacks/glx/gflux.c index ad14d01f..f9b1cb2e 100644 --- a/hacks/glx/gflux.c +++ b/hacks/glx/gflux.c @@ -2,7 +2,7 @@ /* gflux - creates a fluctuating 3D grid * requires OpenGL or MesaGL * - * Copyright (c) Josiah Pease, 2000 + * Copyright (c) Josiah Pease, 2000, 2003 * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that @@ -213,7 +213,7 @@ typedef struct { int imageMax; GLubyte *image; #endif - GLint texName; + GLuint texName; GLfloat tex_xscale; GLfloat tex_yscale; void (*drawFunc)(void); @@ -680,7 +680,7 @@ grabTexture(void) gflux->imageWidth = ximage->width; gflux->imageHeight = ximage->height; - gflux->image = ximage->data; + gflux->image = (GLubyte *) ximage->data; if (bigimage) /* don't scale really large images */ {