GPU/HW: Fix incorrect pipeline layout with texture buffers disabled

This commit is contained in:
Stenzek 2023-12-27 02:03:50 +10:00
parent 489235f48a
commit 98d5b98ab1
No known key found for this signature in database

View file

@ -1011,8 +1011,8 @@ bool GPU_HW::CompilePipelines()
if (!fs) if (!fs)
return false; return false;
plconfig.layout = plconfig.layout = use_buffer ? GPUPipeline::Layout::SingleTextureBufferAndPushConstants :
use_buffer ? GPUPipeline::Layout::SingleTextureBufferAndPushConstants : GPUPipeline::Layout::SingleTextureAndUBO; GPUPipeline::Layout::SingleTextureAndPushConstants;
plconfig.fragment_shader = fs.get(); plconfig.fragment_shader = fs.get();
for (u8 depth_test = 0; depth_test < 2; depth_test++) for (u8 depth_test = 0; depth_test < 2; depth_test++)
{ {