From 7b156f9b2b7eb6a1ab97b47374ebd3ad39315a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Harabie=C5=84?= Date: Tue, 3 Sep 2024 02:05:28 +0200 Subject: [PATCH] d3d11: ignore lightmap texture for liquid surface Fixes #263 --- game_patch/graphics/d3d11/gr_d3d11_solid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game_patch/graphics/d3d11/gr_d3d11_solid.cpp b/game_patch/graphics/d3d11/gr_d3d11_solid.cpp index 9fc53cc6..668310c1 100644 --- a/game_patch/graphics/d3d11/gr_d3d11_solid.cpp +++ b/game_patch/graphics/d3d11/gr_d3d11_solid.cpp @@ -329,7 +329,7 @@ namespace df::gr::d3d11 FaceRenderType render_type = determine_face_render_type(face); int face_tex = face->attributes.bitmap_id; int lightmap_tex = -1; - if (!is_sky_ && face->attributes.surface_index >= 0) { + if (!is_sky_ && render_type != FaceRenderType::liquid && face->attributes.surface_index >= 0) { GSurface* surface = solid->surfaces[face->attributes.surface_index]; lightmap_tex = surface->lightmap->bm_handle; }