From ac900a7b5772a1e93d85fedd9937c6873a5d50a7 Mon Sep 17 00:00:00 2001 From: Peng Date: Tue, 27 Apr 2021 16:51:17 -0700 Subject: [PATCH] ATOM-14947 Take out redundant else case for setting depthclip flag. --- Gems/Atom/RHI/Vulkan/Code/Source/RHI/GraphicsPipeline.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Gems/Atom/RHI/Vulkan/Code/Source/RHI/GraphicsPipeline.cpp b/Gems/Atom/RHI/Vulkan/Code/Source/RHI/GraphicsPipeline.cpp index 605fd6abb1..96b9f171c8 100644 --- a/Gems/Atom/RHI/Vulkan/Code/Source/RHI/GraphicsPipeline.cpp +++ b/Gems/Atom/RHI/Vulkan/Code/Source/RHI/GraphicsPipeline.cpp @@ -285,11 +285,6 @@ namespace AZ // This is not 100% correct, but in most cases it will give us the correct result. info.depthClampEnable = rasterState.m_depthClipEnable ? VK_FALSE : VK_TRUE; } - else if (!rasterState.m_depthClipEnable) - { - // depth clamp must be disabled if physical device does not support it - info.depthClampEnable = VK_FALSE; - } switch (rasterState.m_fillMode) {