From 98d5b98ab1768a564fc71e805d5b4b688397eecf Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 27 Dec 2023 02:03:50 +1000 Subject: [PATCH] GPU/HW: Fix incorrect pipeline layout with texture buffers disabled --- src/core/gpu_hw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index 35587c9ea..f839529cc 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -1011,8 +1011,8 @@ bool GPU_HW::CompilePipelines() if (!fs) return false; - plconfig.layout = - use_buffer ? GPUPipeline::Layout::SingleTextureBufferAndPushConstants : GPUPipeline::Layout::SingleTextureAndUBO; + plconfig.layout = use_buffer ? GPUPipeline::Layout::SingleTextureBufferAndPushConstants : + GPUPipeline::Layout::SingleTextureAndPushConstants; plconfig.fragment_shader = fs.get(); for (u8 depth_test = 0; depth_test < 2; depth_test++) {