From 49a12b41e93c68bcdbcb55c1f2a4442028482f24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Bj=C3=B8rn=20Greve?= Date: Sat, 13 Apr 2024 02:16:45 +0800 Subject: [PATCH] Fixed bug where texture atlas with terrain textures wasn't shown for maps that loaded DDS water textures. --- SourceFiles/draw_dat_browser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SourceFiles/draw_dat_browser.cpp b/SourceFiles/draw_dat_browser.cpp index 5bb4aaf..c870c6d 100644 --- a/SourceFiles/draw_dat_browser.cpp +++ b/SourceFiles/draw_dat_browser.cpp @@ -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;