From 7a6e20f3a8f70897bf7f1803b6ce008876bd80df Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 5 Mar 2018 01:08:26 +0100 Subject: [PATCH] [d3d11] Fixed CheckMultisampleQualityLevels return values --- src/d3d11/d3d11_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp index 3d895d54..1701861c 100644 --- a/src/d3d11/d3d11_device.cpp +++ b/src/d3d11/d3d11_device.cpp @@ -1274,7 +1274,7 @@ namespace dxvk { VkSampleCountFlagBits sampleCountFlag = VK_SAMPLE_COUNT_1_BIT; if (FAILED(GetSampleCount(SampleCount, &sampleCountFlag))) - return S_OK; + return E_INVALIDARG; // Check if the device supports the given combination of format // and sample count. D3D exposes the opaque concept of quality