diff --git a/src/refresh/r_image.c b/src/refresh/r_image.c index 98920f20..59cdb07d 100644 --- a/src/refresh/r_image.c +++ b/src/refresh/r_image.c @@ -1028,10 +1028,13 @@ R_FindImage ( char *name, imagetype_t type ) int i, len; byte *pic, *palette; int width, height; - int realwidth = 0, realheight = 0; char *ptr; char namewe[256]; +#ifdef RETEXTURE + int realwidth = 0, realheight = 0; +#endif + if ( !name ) { return ( NULL ); @@ -1173,6 +1176,7 @@ R_FindImage ( char *name, imagetype_t type ) } } } +#ifdef RETEXTURE else if ( !strcmp( name + len - 4, ".tga" ) ) { LoadTGA( name, &pic, &width, &height ); @@ -1183,6 +1187,7 @@ R_FindImage ( char *name, imagetype_t type ) LoadJPG( name, &pic, &width, &height ); image = R_LoadPic( name, pic, width, realwidth, height, realheight, type, 32 ); } +#endif else { return ( NULL );