mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
Merge branch 'ingar/webp' into ingar/netradiant-ing
This commit is contained in:
+10
-10
@@ -449,7 +449,7 @@ image_t *ImageLoad( const char *filename ){
|
||||
LoadDDSBuffer( buffer, size, &image->pixels, &image->width, &image->height );
|
||||
|
||||
/* debug code */
|
||||
#if 1
|
||||
#if 0
|
||||
{
|
||||
ddsPF_t pf;
|
||||
DDSGetInfo( (ddsBuffer_t*) buffer, NULL, NULL, &pf );
|
||||
@@ -462,15 +462,15 @@ image_t *ImageLoad( const char *filename ){
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* attempt to load ktx */
|
||||
StripExtension( name );
|
||||
strcat( name, ".ktx" );
|
||||
size = vfsLoadFile( (const char*) name, (void**) &buffer, 0 );
|
||||
if ( size > 0 ) {
|
||||
LoadKTXBufferFirstImage( buffer, size, &image->pixels, &image->width, &image->height );
|
||||
else
|
||||
{
|
||||
/* attempt to load ktx */
|
||||
StripExtension( name );
|
||||
strcat( name, ".ktx" );
|
||||
size = vfsLoadFile( (const char*) name, (void**) &buffer, 0 );
|
||||
if ( size > 0 ) {
|
||||
LoadKTXBufferFirstImage( buffer, size, &image->pixels, &image->width, &image->height );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user