Skip to content

Commit

Permalink
Sky color pipeline needs to write depth
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Gneiting committed Nov 28, 2017
1 parent a56f0e7 commit 8320190
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Quake/gl_rmisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 8320190

Please sign in to comment.