mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 05:52:11 +01: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...
|
||||
VkSampleCountFlags sampleFlags = VkSampleCountFlags(sampleCount);
|
||||
|
||||
auto availableFlags = !IsDepthFormat(SurfaceFormat)
|
||||
? m_adapter->deviceProperties().limits.framebufferColorSampleCounts
|
||||
: m_adapter->deviceProperties().limits.framebufferDepthSampleCounts;
|
||||
auto availableFlags = m_adapter->deviceProperties().limits.framebufferColorSampleCounts
|
||||
& m_adapter->deviceProperties().limits.framebufferDepthSampleCounts;
|
||||
|
||||
if (!(availableFlags & sampleFlags))
|
||||
return D3DERR_NOTAVAILABLE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user