1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 22:29:15 +01:00

[dxbc] Fix compiler warning

This commit is contained in:
Philip Rebohle 2018-06-18 15:33:35 +02:00
parent 79dc7d8947
commit f7587014c7
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -21,8 +21,7 @@ namespace dxvk {
DxbcOptions getDxbcDeviceOptions(const Rc<DxvkDevice>& device) { DxbcOptions getDxbcDeviceOptions(const Rc<DxvkDevice>& device) {
DxbcOptions flags; DxbcOptions flags;
const VkPhysicalDeviceProperties devProps = device->adapter()->deviceProperties(); VkPhysicalDeviceFeatures devFeatures = device->features();
const VkPhysicalDeviceFeatures devFeatures = device->features();
if (devFeatures.shaderStorageImageReadWithoutFormat) if (devFeatures.shaderStorageImageReadWithoutFormat)
flags.set(DxbcOption::UseStorageImageReadWithoutFormat); flags.set(DxbcOption::UseStorageImageReadWithoutFormat);