Skip to content

Commit

Permalink
Fix Slate UI breaking on desktop res changes
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Oct 31, 2023
1 parent 7c62b13 commit c9ed3cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mods/vr/D3D11Component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,12 @@ void D3D11Component::on_reset(VR* vr) {
m_last_afr_state = vr->is_using_afr();
}
}

const auto& ffsr = vr->m_fake_stereo_hook;

if (ffsr != nullptr) {
ffsr->set_should_recreate_textures(true);
}
}

// Quick function for one-time rtv clearing
Expand Down
6 changes: 6 additions & 0 deletions src/mods/vr/D3D12Component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,12 @@ void D3D12Component::on_reset(VR* vr) {

m_prev_backbuffer.Reset();
m_openvr.texture_counter = 0;

const auto& ffsr = VR::get()->m_fake_stereo_hook;

if (ffsr != nullptr) {
ffsr->set_should_recreate_textures(true);
}
}

bool D3D12Component::setup() {
Expand Down

0 comments on commit c9ed3cf

Please sign in to comment.