From 83201907f77d4a44f5adf3d8a2701610e1bb3c02 Mon Sep 17 00:00:00 2001 From: Axel Gneiting Date: Mon, 27 Nov 2017 22:49:25 -0600 Subject: [PATCH] Sky color pipeline needs to write depth --- Quake/gl_rmisc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Quake/gl_rmisc.c b/Quake/gl_rmisc.c index e6e9cb083..a848c8073 100644 --- a/Quake/gl_rmisc.c +++ b/Quake/gl_rmisc.c @@ -1436,7 +1436,7 @@ void R_CreatePipelines() shader_stages[1].module = basic_notex_frag_module; depth_stencil_state_create_info.depthTestEnable = VK_TRUE; - depth_stencil_state_create_info.depthWriteEnable = VK_FALSE; + depth_stencil_state_create_info.depthWriteEnable = VK_TRUE; depth_stencil_state_create_info.depthCompareOp = VK_COMPARE_OP_LESS_OR_EQUAL; assert(vulkan_globals.sky_color_pipeline == VK_NULL_HANDLE); @@ -1446,6 +1446,7 @@ void R_CreatePipelines() GL_SetObjectName((uint64_t)vulkan_globals.sky_color_pipeline, VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT, "sky_color"); + depth_stencil_state_create_info.depthTestEnable = VK_FALSE; shader_stages[1].module = basic_frag_module; assert(vulkan_globals.sky_box_pipeline == VK_NULL_HANDLE);