mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 17:06:25 +00:00
Revert "Fixed Vulkan validation error"
This reverts commit b82b1f416f
.
The renderer should not be enabling depth clamping.
This commit is contained in:
@@ -6384,11 +6384,7 @@ static SDL_GPUGraphicsPipeline *VULKAN_CreateGraphicsPipeline(
|
||||
rasterizationStateCreateInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO;
|
||||
rasterizationStateCreateInfo.pNext = NULL;
|
||||
rasterizationStateCreateInfo.flags = 0;
|
||||
if (renderer->desiredDeviceFeatures.depthClamp) {
|
||||
rasterizationStateCreateInfo.depthClampEnable = !createinfo->rasterizer_state.enable_depth_clip;
|
||||
} else {
|
||||
rasterizationStateCreateInfo.depthClampEnable = VK_FALSE;
|
||||
}
|
||||
rasterizationStateCreateInfo.depthClampEnable = !createinfo->rasterizer_state.enable_depth_clip;
|
||||
rasterizationStateCreateInfo.rasterizerDiscardEnable = VK_FALSE;
|
||||
rasterizationStateCreateInfo.polygonMode = SDLToVK_PolygonMode(
|
||||
renderer,
|
||||
|
Reference in New Issue
Block a user