diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-01-30 19:31:36 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-30 19:31:36 +1300 |
| commit | 13d14282a0d59bed2d204fadc30328b018a1bba1 (patch) | |
| tree | 9891a4d23e5c3351ef5da6d0a653b08bef4075fb /Source/Core/VideoCommon/PostProcessing.cpp | |
| parent | 5a8b8658f1b96256bd55ec595d2748929a3cc9df (diff) | |
| parent | e4e425b93038aa485b4432ada5626c2f8e8ccc02 (diff) | |
Merge pull request #11511 from TellowKrinkle/MTLHD4000
VideoCommon: Avoid creating pipelines with no render targets
Diffstat (limited to 'Source/Core/VideoCommon/PostProcessing.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PostProcessing.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/PostProcessing.cpp b/Source/Core/VideoCommon/PostProcessing.cpp index 69e4327bdd..0a1e995c15 100644 --- a/Source/Core/VideoCommon/PostProcessing.cpp +++ b/Source/Core/VideoCommon/PostProcessing.cpp @@ -709,6 +709,9 @@ bool PostProcessing::CompilePixelShader() bool PostProcessing::CompilePipeline() { + if (m_framebuffer_format == AbstractTextureFormat::Undefined) + return true; // Not needed (some backends don't like making pipelines with no targets) + AbstractPipelineConfig config = {}; config.vertex_shader = m_vertex_shader.get(); config.geometry_shader = |
