1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Fixed incorrect function used for deleting modified pixel shaders

This commit is contained in:
narzoul 2024-05-12 16:05:51 +02:00
parent f70e2f9d32
commit 2da9c87a21

View File

@ -485,7 +485,7 @@ namespace D3dDdi
m_pixelShaders.emplace(data->ShaderHandle,
PixelShader{ std::vector<UINT>(code, code + data->CodeSize / 4),
std::unique_ptr<void, ResourceDeleter>(
nullptr, ResourceDeleter(m_device, m_device.getOrigVtable().pfnDeleteVertexShaderFunc)),
nullptr, ResourceDeleter(m_device, m_device.getOrigVtable().pfnDeletePixelShader)),
shaderAssembler.getTextureStageCount(), false });
}
return result;