Skip to content

Commit

Permalink
Fixed bug where texture atlas with terrain textures wasn't shown for …
Browse files Browse the repository at this point in the history
…maps that loaded DDS water textures.
  • Loading branch information
Jonathan-Greve committed Apr 12, 2024
1 parent 52affc3 commit 49a12b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SourceFiles/draw_dat_browser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ bool parse_file(DATManager* dat_manager, int index, MapRenderer* map_renderer,
size_t ddsDataSize = ddsData.size();
const auto HR = map_renderer->GetTextureManager()->
CreateTextureFromDDSInMemory(ddsData.data(), ddsDataSize, &texture_id, &dat_texture.width,
&dat_texture.height, dat_texture.rgba_data, entry->Hash);
&dat_texture.height, dat_texture.rgba_data, decoded_filename);
if (SUCCEEDED(HR) && texture_id >= 0) {
water_textures[i] = map_renderer->GetTextureManager()->GetTexture(texture_id);
dat_texture.texture_type = DDSt;
Expand Down

0 comments on commit 49a12b4

Please sign in to comment.