1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[d3d9] Make COPM render state unlikely

This is only ever called once per game and we don't support it anyway
This commit is contained in:
Joshua Ashton 2020-04-05 06:27:14 +01:00
parent 92031a7bac
commit 83e03ac9d8

View File

@ -1726,7 +1726,7 @@ namespace dxvk {
return D3D_OK;
}
if (Value == uint32_t(D3D9Format::COPM)) {
if (unlikely(Value == uint32_t(D3D9Format::COPM))) {
// UE3 calls this MinimalNVIDIADriverShaderOptimization
Logger::info("D3D9DeviceEx::SetRenderState: MinimalNVIDIADriverShaderOptimization is unsupported");
return D3D_OK;