mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-04-12 03:02:33 +02:00
[d3d9] Make reported sample counts consistent with DecodeMultiSampleType behavior.
This commit is contained in:
parent
9e110cd3e5
commit
5ae5476d71
@ -195,9 +195,8 @@ namespace dxvk {
|
|||||||
// Therefore...
|
// Therefore...
|
||||||
VkSampleCountFlags sampleFlags = VkSampleCountFlags(sampleCount);
|
VkSampleCountFlags sampleFlags = VkSampleCountFlags(sampleCount);
|
||||||
|
|
||||||
auto availableFlags = !IsDepthFormat(SurfaceFormat)
|
auto availableFlags = m_adapter->deviceProperties().limits.framebufferColorSampleCounts
|
||||||
? m_adapter->deviceProperties().limits.framebufferColorSampleCounts
|
& m_adapter->deviceProperties().limits.framebufferDepthSampleCounts;
|
||||||
: m_adapter->deviceProperties().limits.framebufferDepthSampleCounts;
|
|
||||||
|
|
||||||
if (!(availableFlags & sampleFlags))
|
if (!(availableFlags & sampleFlags))
|
||||||
return D3DERR_NOTAVAILABLE;
|
return D3DERR_NOTAVAILABLE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user