Skip to content

Commit

Permalink
OpenXR (D3D12): Fix black screen with menu open
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Oct 3, 2023
1 parent ecd1e1e commit c32cb4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mods/vr/D3D12Component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ vr::EVRCompositorError D3D12Component::on_frame(VR* vr) {

const auto framework_quad = openxr_overlay.generate_framework_ui_quad();
if (framework_quad) {
quad_layers.push_back((XrCompositionLayerBaseHeader*)&framework_quad);
quad_layers.push_back((XrCompositionLayerBaseHeader*)&framework_quad->get());
}

auto result = vr->m_openxr->end_frame(quad_layers, scene_depth_tex.Get() != nullptr);
Expand Down

0 comments on commit c32cb4e

Please sign in to comment.