diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-01-27 15:07:05 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2023-01-31 19:41:23 +1300 |
| commit | d37f83ffeba218c6ef94b78532aed50b1ebbc4a4 (patch) | |
| tree | 0958778e5ee1693c70a9d66d02f6674e91202fb8 /Source/Core/VideoCommon | |
| parent | f0336a3129ea431862e6e3bf1ccf51a384cf3f57 (diff) | |
Implement AbstractGfx for Software & Null
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/AbstractGfx.h | 2 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/AbstractGfx.h b/Source/Core/VideoCommon/AbstractGfx.h index 2db077c98c..eb5944fc84 100644 --- a/Source/Core/VideoCommon/AbstractGfx.h +++ b/Source/Core/VideoCommon/AbstractGfx.h @@ -55,6 +55,8 @@ using ClearColor = std::array<float, 4>; class AbstractGfx { public: + virtual ~AbstractGfx() = default; + virtual bool IsHeadless() const = 0; virtual void SetPipeline(const AbstractPipeline* pipeline) {} diff --git a/Source/Core/VideoCommon/RenderBase.h b/Source/Core/VideoCommon/RenderBase.h index fb88dfd1eb..7bd18e16e7 100644 --- a/Source/Core/VideoCommon/RenderBase.h +++ b/Source/Core/VideoCommon/RenderBase.h @@ -90,8 +90,8 @@ public: float EFBToScaledXf(float x) const; float EFBToScaledYf(float y) const; - virtual void ClearScreen(const MathUtil::Rectangle<int>& rc, bool colorEnable, bool alphaEnable, - bool zEnable, u32 color, u32 z); + void ClearScreen(const MathUtil::Rectangle<int>& rc, bool colorEnable, bool alphaEnable, + bool zEnable, u32 color, u32 z); virtual void ReinterpretPixelData(EFBReinterpretType convtype); void RenderToXFB(u32 xfbAddr, const MathUtil::Rectangle<int>& sourceRc, u32 fbStride, u32 fbHeight, float Gamma = 1.0f); |
