From 48a1282a0803da0dd38314cc1659cf71e509b777 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 20 Dec 2023 21:41:12 +1000 Subject: [PATCH] GPU/HW: Fix incorrect layout for non-buffer VRAM write --- src/core/gpu_hw.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index f471eb34d..35587c9ea 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -1011,7 +1011,8 @@ bool GPU_HW::CompilePipelines() if (!fs) return false; - plconfig.layout = GPUPipeline::Layout::SingleTextureBufferAndPushConstants; + plconfig.layout = + use_buffer ? GPUPipeline::Layout::SingleTextureBufferAndPushConstants : GPUPipeline::Layout::SingleTextureAndUBO; plconfig.fragment_shader = fs.get(); for (u8 depth_test = 0; depth_test < 2; depth_test++) {