diff options
| author | TellowKrinkle <tellowkrinkle@gmail.com> | 2023-01-29 14:35:23 -0600 |
|---|---|---|
| committer | TellowKrinkle <tellowkrinkle@gmail.com> | 2023-01-29 14:35:23 -0600 |
| commit | 1119a9ba327fb86cb03f303539ce5b9697158379 (patch) | |
| tree | 8e7a813c5c500d7ec267f43f89edee3430aabe3b /Source/Core/VideoCommon/PostProcessing.cpp | |
| parent | d380d43209ce046d30af398ca3ecfc6fdd5a47d1 (diff) | |
VideoCommon: Don't create pipelines with no render targets
Some backends don't like it when you do that
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 = |
