1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 01:24:11 +01:00

[dxgi] Fix format parameter in CheckImageFormatSupport

This commit is contained in:
Philip Rebohle 2018-08-26 12:35:42 +02:00
parent 2bdd614d07
commit 0704b044a9

View File

@ -904,7 +904,7 @@ namespace dxvk {
const Rc<DxvkAdapter>& Adapter,
VkFormat Format,
VkFormatFeatureFlags Features) const {
VkFormatProperties supported = Adapter->formatProperties(VK_FORMAT_D24_UNORM_S8_UINT);
VkFormatProperties supported = Adapter->formatProperties(Format);
return (supported.linearTilingFeatures & Features) == Features
|| (supported.optimalTilingFeatures & Features) == Features;