Skip to content

Commit

Permalink
Native stereo fix: Fix spectator view
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Feb 24, 2025
1 parent ede37f2 commit 5cbca5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mods/vr/D3D11Component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ vr::EVRCompositorError D3D11Component::on_frame(VR* vr) {
const auto original_centerh = (float)eye_height / 2.0f;

// left side of double wide tex only on AFR/synced
if (vr->is_using_afr()) {
if (vr->is_using_afr() || vr->is_native_stereo_fix_enabled()) {
source_rect.left = 0;
source_rect.top = 0;
source_rect.right = (LONG)eye_width;
Expand Down
4 changes: 2 additions & 2 deletions src/mods/vr/D3D12Component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -891,8 +891,8 @@ void D3D12Component::draw_spectator_view(ID3D12GraphicsCommandList* command_list
// only show one half of the double wide texture (right side)
RECT source_rect{};

// Show left side when using AFR
if (vr->is_using_afr()) {
// Show left side when using AFR or native stereo fix
if (vr->is_using_afr() || vr->is_native_stereo_fix_enabled()) {
source_rect.left = 0;
source_rect.top = 0;
source_rect.right = m_backbuffer_size[0] / 2;
Expand Down

0 comments on commit 5cbca5e

Please sign in to comment.