Skip to content

Commit

Permalink
d3d11: ignore lightmap texture for liquid surface
Browse files Browse the repository at this point in the history
Fixes #263
  • Loading branch information
rafalh committed Sep 3, 2024
1 parent 8b94e4a commit 7b156f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game_patch/graphics/d3d11/gr_d3d11_solid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7b156f9

Please sign in to comment.