From d897181386ea4e30ddaba5a6171fbed6e8481c2f Mon Sep 17 00:00:00 2001 From: Alexander Jaus <133156517+nv-ajaus@users.noreply.github.com> Date: Tue, 27 Jun 2023 16:07:26 -0700 Subject: [PATCH] Revert shader object release during device reset (#161) Fixes #159 --- source/d3d8to9_device.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/d3d8to9_device.cpp b/source/d3d8to9_device.cpp index 20b100c..12c4445 100644 --- a/source/d3d8to9_device.cpp +++ b/source/d3d8to9_device.cpp @@ -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)