Skip to content

Commit

Permalink
tr_image: fix loading dds/ prefixed .dds images
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Jan 30, 2025
1 parent 396d7ee commit a6d89da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/renderer/tr_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,7 @@ static void R_LoadImage( const char *name, byte **pic, int *width, int *height,

if ( loader )
{
std::string altName = Str::Format( "%s.%s", name, loader->ext );
std::string altName = Str::Format( "%s%s.%s", prefix, name, loader->ext );
R_LoadImageWithLoader( name, altName.c_str(), loader, pic, width, height, numLayers, numMips, bits, alphaByte );
return;
}
Expand Down

0 comments on commit a6d89da

Please sign in to comment.