Skip to content

Commit

Permalink
Revert shader object release during device reset (#161)
Browse files Browse the repository at this point in the history
Fixes #159
  • Loading branch information
nv-ajaus authored Jun 27, 2023
1 parent cc71fd3 commit d897181
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions source/d3d8to9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,6 @@ HRESULT STDMETHODCALLTYPE Direct3DDevice8::Reset(D3DPRESENT_PARAMETERS8 *pPresen
}
}

// Shaders are destroyed alongside the device that created them in D3D8 but not in D3D9
// so we Release all the shaders when the device releases to mirror that behaviour
ReleaseShaders();

return ProxyInterface->Reset(&PresentParams);
}
HRESULT STDMETHODCALLTYPE Direct3DDevice8::Present(const RECT *pSourceRect, const RECT *pDestRect, HWND hDestWindowOverride, const RGNDATA *pDirtyRegion)
Expand Down

0 comments on commit d897181

Please sign in to comment.