Skip to content

Commit

Permalink
Fix desktop texture not updating after Desktop Duplication resets
Browse files Browse the repository at this point in the history
  • Loading branch information
elvissteinjr committed Apr 17, 2024
1 parent 4ed8e97 commit 69b8469
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/DesktopPlus/OutputManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ OutputManager::~OutputManager()
//
void OutputManager::CleanRefs()
{
//Release the shared desktop overlay texture since we're destroying the D3D11 device it's attached to (don't need this after shutting down OpenVR though)
if (vr::VROverlay() != nullptr)
{
vr::VROverlayEx()->ReleaseSharedOverlayTexture(m_OvrlHandleDesktopTexture);
}

if (m_VertexShader)
{
m_VertexShader->Release();
Expand Down

0 comments on commit 69b8469

Please sign in to comment.