Revert "also load DDS files the way DarkPlaces stores them (does DDS loading even work?)" because Radiant does not support this yet, and it won't be easy to do the same hack in Radiant.
This reverts commit 8850310690.
This commit is contained in:
parent
8850310690
commit
f43d2c575d
|
|
@ -419,12 +419,6 @@ image_t *ImageLoad( const char *filename )
|
|||
StripExtension( name );
|
||||
strcat( name, ".dds" );
|
||||
size = vfsLoadFile( (const char*) name, (void**) &buffer, 0 );
|
||||
if(size <= 0)
|
||||
{
|
||||
memmove(name + 4, name, strlen(name) + 1);
|
||||
memcpy(name, "dds/", 4);
|
||||
size = vfsLoadFile( (const char*) name, (void**) &buffer, 0 );
|
||||
}
|
||||
if( size > 0 )
|
||||
{
|
||||
LoadDDSBuffer( buffer, size, &image->pixels, &image->width, &image->height );
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user