From 2da9c87a2147998d975ba78b61873772c9e2b024 Mon Sep 17 00:00:00 2001 From: narzoul Date: Sun, 12 May 2024 16:05:51 +0200 Subject: [PATCH] Fixed incorrect function used for deleting modified pixel shaders --- DDrawCompat/D3dDdi/DeviceState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDrawCompat/D3dDdi/DeviceState.cpp b/DDrawCompat/D3dDdi/DeviceState.cpp index c5675ee..c9ee880 100644 --- a/DDrawCompat/D3dDdi/DeviceState.cpp +++ b/DDrawCompat/D3dDdi/DeviceState.cpp @@ -485,7 +485,7 @@ namespace D3dDdi m_pixelShaders.emplace(data->ShaderHandle, PixelShader{ std::vector(code, code + data->CodeSize / 4), std::unique_ptr( - nullptr, ResourceDeleter(m_device, m_device.getOrigVtable().pfnDeleteVertexShaderFunc)), + nullptr, ResourceDeleter(m_device, m_device.getOrigVtable().pfnDeletePixelShader)), shaderAssembler.getTextureStageCount(), false }); } return result;