diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-01-28 16:23:30 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2023-01-31 19:41:24 +1300 |
| commit | f158ff300b72cff5ca1e2e62bc239111987188af (patch) | |
| tree | 0ba518f48f8f2e0ac0c0ea2775c69a071cec2056 /Source/Core/VideoBackends | |
| parent | 26e00c3bb4957ce9d26415e415d0b137742844bc (diff) | |
Handle VideoSoftware's present fallback better
Not a good idea to abuse bSupportsPostProcessing
Diffstat (limited to 'Source/Core/VideoBackends')
| -rw-r--r-- | Source/Core/VideoBackends/Null/NullGfx.cpp | 5 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/Null/NullGfx.h | 1 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWGfx.cpp | 5 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWGfx.h | 1 |
4 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Null/NullGfx.cpp b/Source/Core/VideoBackends/Null/NullGfx.cpp index ce8da5ff06..7449aae09c 100644 --- a/Source/Core/VideoBackends/Null/NullGfx.cpp +++ b/Source/Core/VideoBackends/Null/NullGfx.cpp @@ -29,6 +29,11 @@ bool NullGfx::IsHeadless() const return true; } +bool NullGfx::SupportsUtilityDrawing() const +{ + return false; +} + std::unique_ptr<AbstractTexture> NullGfx::CreateTexture(const TextureConfig& config, [[maybe_unused]] std::string_view name) { diff --git a/Source/Core/VideoBackends/Null/NullGfx.h b/Source/Core/VideoBackends/Null/NullGfx.h index 5afb3995b8..b1dff2bc2f 100644 --- a/Source/Core/VideoBackends/Null/NullGfx.h +++ b/Source/Core/VideoBackends/Null/NullGfx.h @@ -15,6 +15,7 @@ public: ~NullGfx() override; bool IsHeadless() const override; + virtual bool SupportsUtilityDrawing() const override; std::unique_ptr<AbstractTexture> CreateTexture(const TextureConfig& config, std::string_view name) override; diff --git a/Source/Core/VideoBackends/Software/SWGfx.cpp b/Source/Core/VideoBackends/Software/SWGfx.cpp index b53b7ae89a..7e8c234540 100644 --- a/Source/Core/VideoBackends/Software/SWGfx.cpp +++ b/Source/Core/VideoBackends/Software/SWGfx.cpp @@ -27,6 +27,11 @@ bool SWGfx::IsHeadless() const return m_window->IsHeadless(); } +bool SWGfx::SupportsUtilityDrawing() const +{ + return false; +} + std::unique_ptr<AbstractTexture> SWGfx::CreateTexture(const TextureConfig& config, [[maybe_unused]] std::string_view name) { diff --git a/Source/Core/VideoBackends/Software/SWGfx.h b/Source/Core/VideoBackends/Software/SWGfx.h index 48015fda25..1337d89525 100644 --- a/Source/Core/VideoBackends/Software/SWGfx.h +++ b/Source/Core/VideoBackends/Software/SWGfx.h @@ -15,6 +15,7 @@ public: SWGfx(std::unique_ptr<SWOGLWindow> window); bool IsHeadless() const override; + virtual bool SupportsUtilityDrawing() const override; std::unique_ptr<AbstractTexture> CreateTexture(const TextureConfig& config, std::string_view name) override; |
