Skip to content

Commit b534edc

Browse files
committed
Allow "Show OSD in Video Capture" option to be set from the control panel when SK's ReShade AddOn is active (was removed due to lack of space)
1 parent b077085 commit b534edc

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

src/control_panel/cfg_d3d11.cpp

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,19 +1564,17 @@ SK::ControlPanel::D3D11::Draw (void)
15641564
config.utility.save_async_if (changed);
15651565
}
15661566

1567-
if (! config.reshade.is_addon)
1567+
// This only works when we have wrapped SwapChains
1568+
if ( ReadAcquire (&SK_DXGI_LiveWrappedSwapChains) != 0 ||
1569+
ReadAcquire (&SK_DXGI_LiveWrappedSwapChain1s) != 0 )
15681570
{
1569-
// This only works when we have wrapped SwapChains
1570-
if ( ReadAcquire (&SK_DXGI_LiveWrappedSwapChains) != 0 ||
1571-
ReadAcquire (&SK_DXGI_LiveWrappedSwapChain1s) != 0 )
1572-
{
1573-
if (d3d11 && !indirect) ImGui::SameLine ();
1571+
if (d3d11 && !indirect)
1572+
ImGui::SameLine ();
15741573

1575-
OSD::DrawVideoCaptureOptions ();
1576-
}
1574+
OSD::DrawVideoCaptureOptions ();
15771575
}
15781576

1579-
else
1577+
if (config.reshade.is_addon)
15801578
{
15811579
if (d3d11 && !indirect)
15821580
ImGui::SameLine ();
@@ -1614,7 +1612,7 @@ SK::ControlPanel::D3D11::Draw (void)
16141612
{
16151613
ImGui::SameLine ();
16161614

1617-
if (ImGui::TreeNode ("Advanced (Debug)###Advanced_D3D11"))
1615+
if (ImGui::TreeNode ("Debug###Debug_D3D11"))
16181616
{
16191617
ImGui::TreePop ();
16201618
ImGui::Separator ();

0 commit comments

Comments
 (0)