GPU/HW: Fix uninitialized pipeline fields

pull/3531/head
Stenzek 2 months ago
parent de39ff5e9b
commit 63350c3d83
No known key found for this signature in database

@ -1768,6 +1768,7 @@ bool GPU_HW::CompileResolutionDependentPipelines(Error* error)
plconfig.geometry_shader = nullptr;
plconfig.samples = 1;
plconfig.per_sample_shading = false;
plconfig.render_pass_flags = GPUPipeline::NoRenderPassFlags;
plconfig.depth = GPUPipeline::DepthState::GetNoTestsState();
plconfig.blend = GPUPipeline::BlendState::GetNoBlendingState();
plconfig.vertex_shader = m_fullscreen_quad_vertex_shader.get();

@ -871,6 +871,9 @@ bool GPUTextureCache::CompilePipelines(Error* error)
plconfig.blend = GPUPipeline::BlendState::GetNoBlendingState();
plconfig.primitive = GPUPipeline::Primitive::Triangles;
plconfig.geometry_shader = nullptr;
plconfig.samples = 1;
plconfig.per_sample_shading = false;
plconfig.render_pass_flags = GPUPipeline::NoRenderPassFlags;
plconfig.SetTargetFormats(REPLACEMENT_TEXTURE_FORMAT);
// Most flags don't matter here.

Loading…
Cancel
Save