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;