Skip to content

Commit

Permalink
UI compat: Fix case where scene would be composited onto UI layer
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 2, 2024
1 parent 1136b34 commit c20c76e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mods/vr/FFakeStereoRenderingHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1833,7 +1833,9 @@ FRHITexture2D** FFakeStereoRenderingHook::viewport_get_render_target_texture_hoo
}

// We should always allow the viewport when used in a post processing context to go through.
if (utility::find_string_reference_in_path(*func_start, L"FinalPostProcessColor", false)) {
// There's two because this function stops itself at 200 instructions
// doing a second one from the retaddr allows us to go further.
if (utility::find_string_reference_in_path(*func_start, L"FinalPostProcessColor", false) || utility::find_string_reference_in_path(retaddr, L"FinalPostProcessColor", false)) {
SPDLOG_INFO("Found FinalPostProcessColor reference @ {:x}", retaddr);
data.call_original_retaddrs.insert(retaddr);
return og(viewport);
Expand Down

0 comments on commit c20c76e

Please sign in to comment.