GPU/HW: Fix typo in CompilePipelines()

Results in VRAM copy pipeline always succeeding even when it failed.
pull/3798/head
Stenzek 1 week ago
parent ed6720bbf5
commit 025ea24fc4
No known key found for this signature in database

@ -1668,7 +1668,7 @@ bool GPU_HW::CompilePipelines(Error* error)
plconfig.depth.depth_test =
(depth_test != 0) ? GPUPipeline::DepthFunc::GreaterEqual : GPUPipeline::DepthFunc::Always;
if (!(m_vram_copy_pipelines[depth_test] = g_gpu_device->CreatePipeline(plconfig), error))
if (!(m_vram_copy_pipelines[depth_test] = g_gpu_device->CreatePipeline(plconfig, error)))
return false;
GL_OBJECT_NAME_FMT(m_vram_copy_pipelines[depth_test], "VRAM Write Pipeline, depth={}", depth_test);

Loading…
Cancel
Save