- removed duplicated expressions

This commit is contained in:
alexey.lysiuk 2019-03-24 16:09:01 +02:00
parent a0b0467e91
commit 90c4e62e67

View file

@ -77,7 +77,6 @@ VulkanDevice::VulkanDevice()
CreateSurface(); CreateSurface();
UsedDeviceFeatures.samplerAnisotropy = VK_TRUE; UsedDeviceFeatures.samplerAnisotropy = VK_TRUE;
UsedDeviceFeatures.shaderClipDistance = VK_TRUE;
UsedDeviceFeatures.fragmentStoresAndAtomics = VK_TRUE; UsedDeviceFeatures.fragmentStoresAndAtomics = VK_TRUE;
UsedDeviceFeatures.depthClamp = VK_TRUE; UsedDeviceFeatures.depthClamp = VK_TRUE;
UsedDeviceFeatures.shaderClipDistance = VK_TRUE; UsedDeviceFeatures.shaderClipDistance = VK_TRUE;
@ -102,7 +101,6 @@ bool VulkanDevice::CheckFeatures(const VkPhysicalDeviceFeatures &f)
{ {
return return
f.samplerAnisotropy == VK_TRUE && f.samplerAnisotropy == VK_TRUE &&
f.shaderClipDistance == VK_TRUE &&
f.fragmentStoresAndAtomics == VK_TRUE && f.fragmentStoresAndAtomics == VK_TRUE &&
f.depthClamp == VK_TRUE && f.depthClamp == VK_TRUE &&
f.shaderClipDistance == VK_TRUE; f.shaderClipDistance == VK_TRUE;