Hide native JPEG and TGA loading functions behind RETEXTURE

This commit is contained in:
Yamagi Burmeister 2012-06-04 12:40:58 +02:00
parent b42f208fd0
commit d0146dc4d5

View file

@ -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 );