mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Hide native JPEG and TGA loading functions behind RETEXTURE
This commit is contained in:
parent
b42f208fd0
commit
d0146dc4d5
1 changed files with 6 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue