mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-15 10:54:36 +00:00
GPU/HW: Fix uninitialized pipeline fields
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user