X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fcircuit.c;h=7b55956abec948f1e66bdbd67dcbf0fcba3dbc1d;hp=039d2fed64d64162983a1aea0fdc4a3fbfc39f51;hb=6a1da724858673ac40aa13a9612340d8bed8c7b9;hpb=96bdd7cf6ea60c418a76921acaf0e34d6f5be930 diff --git a/hacks/glx/circuit.c b/hacks/glx/circuit.c index 039d2fed..7b55956a 100644 --- a/hacks/glx/circuit.c +++ b/hacks/glx/circuit.c @@ -241,7 +241,7 @@ static const char * smctypes[] = { typedef struct { int type; /* package type. 0 = to-92, 1 = to-220 */ GLfloat tw, th; /* texture dimensions */ - int tnum; /* texture binding */ + GLuint tnum; /* texture binding */ } Transistor; typedef struct { @@ -392,7 +392,7 @@ void DrawRCA(RCA *); void DrawThreeFive(ThreeFive *); void DrawSwitch(Switch *); -void freetexture(int); +void freetexture(GLuint); void reorder(Component *[]); void circle(float, int,int); void bandedCylinder(float, float , GLfloat, GLfloat , GLfloat, Band **, int); @@ -2002,7 +2002,7 @@ void display(void) glFlush(); } -void freetexture (int texture) { +void freetexture (GLuint texture) { s_refs[texture]--; if (s_refs[texture] < 1) { glDeleteTextures(1, &texture); @@ -2064,7 +2064,7 @@ TexNum * fonttexturealloc (const char *str, float *fg, float *bg) GL_RGBA, GL_UNSIGNED_BYTE, ximage->data); if (status) { - const char *s = gluErrorString (status); + const char *s = (char *) gluErrorString (status); fprintf (stderr, "%s: error mipmapping %dx%d texture: %s\n", progname, ximage->width, ximage->height, (s ? s : "(unknown)"));