core/gpu: depth-only passes can include fragment shader;

This commit is contained in:
bjorn 2024-02-20 10:19:16 -08:00
parent d4e2736e0b
commit 8b78a4d3b5
1 changed files with 1 additions and 1 deletions

View File

@ -1591,7 +1591,7 @@ bool gpu_pipeline_init_graphics(gpu_pipeline* pipeline, gpu_pipeline_info* info)
.pData = (const void*) constants
};
uint32_t stageCount = info->shader->handles[1] && info->pass->colorCount > 0 ? 2 : 1;
uint32_t stageCount = info->shader->handles[1] ? 2 : 1;
VkPipelineShaderStageCreateInfo shaders[2] = {
{