diff options
author | BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com> | 2024-11-17 19:29:21 +0100 |
---|---|---|
committer | BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com> | 2024-11-17 19:29:21 +0100 |
commit | bb3d0045b0b63e57d8a8b38157e924f83ff4fd9a (patch) | |
tree | e487ceb2eeb28b5e4427944b95c29ef58b8174fa /servers | |
parent | 76fa7b291455a8ba24c50005072ebdb58f8a5984 (diff) | |
download | redot-engine-bb3d0045b0b63e57d8a8b38157e924f83ff4fd9a.tar.gz |
Fix updating lightmap captures on Mobile
Diffstat (limited to 'servers')
-rw-r--r-- | servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp b/servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp index 5ad92bd211..c9d5e51753 100644 --- a/servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp +++ b/servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp @@ -2064,6 +2064,10 @@ void RenderForwardMobile::_fill_render_list(RenderListType p_render_list, const surf = surf->next; } } + + if (p_render_list == RENDER_LIST_OPAQUE && lightmap_captures_used) { + RD::get_singleton()->buffer_update(scene_state.lightmap_capture_buffer, 0, sizeof(LightmapCaptureData) * lightmap_captures_used, scene_state.lightmap_captures); + } } void RenderForwardMobile::_setup_environment(const RenderDataRD *p_render_data, bool p_no_fog, const Size2i &p_screen_size, const Color &p_default_bg_color, bool p_opaque_render_buffers, bool p_pancake_shadows, int p_index) { |