Skip to content

Commit 48d13d4

Browse files
committed
tr_image: fix loading dds/ prefixed .dds images
1 parent 3cfb0ea commit 48d13d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/renderer/tr_image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ static void R_LoadImage( const char *name, byte **pic, int *width, int *height,
17691769

17701770
if ( loader )
17711771
{
1772-
std::string altName = Str::Format( "%s.%s", name, loader->ext );
1772+
std::string altName = Str::Format( "%s%s.%s", prefix, name, loader->ext );
17731773
R_LoadImageWithLoader( name, altName.c_str(), loader, pic, width, height, numLayers, numMips, bits, alphaByte );
17741774
return;
17751775
}

0 commit comments

Comments
 (0)