From f700761b0fa0734a3c9008d7946e053468c925fa Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Sat, 19 Nov 2022 23:10:34 -0500 Subject: [PATCH] remove Refresh_RasterizerState.depthClampEnable --- include/Refresh.h | 1 - src/Refresh_Driver_Vulkan.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/Refresh.h b/include/Refresh.h index 7804056..0e8b09f 100644 --- a/include/Refresh.h +++ b/include/Refresh.h @@ -486,7 +486,6 @@ typedef struct Refresh_ComputeShaderInfo typedef struct Refresh_RasterizerState { - uint8_t depthClampEnable; Refresh_FillMode fillMode; Refresh_CullMode cullMode; Refresh_FrontFace frontFace; diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index f39db0f..7572bbe 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -6144,7 +6144,7 @@ static Refresh_GraphicsPipeline* VULKAN_CreateGraphicsPipeline( rasterizationStateCreateInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO; rasterizationStateCreateInfo.pNext = NULL; rasterizationStateCreateInfo.flags = 0; - rasterizationStateCreateInfo.depthClampEnable = pipelineCreateInfo->rasterizerState.depthClampEnable; + rasterizationStateCreateInfo.depthClampEnable = VK_FALSE; rasterizationStateCreateInfo.rasterizerDiscardEnable = VK_FALSE; rasterizationStateCreateInfo.polygonMode = RefreshToVK_PolygonMode[ pipelineCreateInfo->rasterizerState.fillMode @@ -10615,7 +10615,6 @@ static uint8_t VULKAN_INTERNAL_CreateLogicalDevice( SDL_zero(deviceFeatures); deviceFeatures.occlusionQueryPrecise = VK_TRUE; deviceFeatures.fillModeNonSolid = VK_TRUE; - deviceFeatures.depthClamp = VK_TRUE; deviceFeatures.samplerAnisotropy = VK_TRUE; /* creating the logical device */