mirror of https://github.com/PCSX2/pcsx2.git
GS: Add missing override specifier to a few files
This commit is contained in:
parent
013c292ffb
commit
ea41cce5ef
pcsx2/GS/Renderers
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include "GS/Renderers/Common/GSRenderer.h"
|
||||
|
||||
class GSRendererNull : public GSRenderer
|
||||
class GSRendererNull final : public GSRenderer
|
||||
{
|
||||
class GSVertexTraceNull : public GSVertexTrace
|
||||
{
|
||||
|
@ -29,11 +29,11 @@ class GSRendererNull : public GSRenderer
|
|||
};
|
||||
|
||||
protected:
|
||||
void Draw()
|
||||
void Draw() override
|
||||
{
|
||||
}
|
||||
|
||||
GSTexture* GetOutput(int i, int& y_offset)
|
||||
GSTexture* GetOutput(int i, int& y_offset) override
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include "GS/Renderers/Common/GSTexture.h"
|
||||
|
||||
class GSTextureNull : public GSTexture
|
||||
class GSTextureNull final : public GSTexture
|
||||
{
|
||||
struct
|
||||
{
|
||||
|
@ -33,8 +33,8 @@ public:
|
|||
Type GetType() const { return m_desc.type; }
|
||||
Format GetFormat() const { return m_desc.format; }
|
||||
|
||||
bool Update(const GSVector4i& r, const void* data, int pitch, int layer = 0) { return true; }
|
||||
bool Map(GSMap& m, const GSVector4i* r = NULL, int layer = 0) { return false; }
|
||||
void Unmap() {}
|
||||
bool Save(const std::string& fn) { return false; }
|
||||
bool Update(const GSVector4i& r, const void* data, int pitch, int layer = 0) override { return true; }
|
||||
bool Map(GSMap& m, const GSVector4i* r = NULL, int layer = 0) override { return false; }
|
||||
void Unmap() override {}
|
||||
bool Save(const std::string& fn) override { return false; }
|
||||
};
|
||||
|
|
|
@ -83,5 +83,5 @@ public:
|
|||
|
||||
void CommitPages(const GSVector2i& region, bool commit) final;
|
||||
|
||||
u32 GetMemUsage();
|
||||
u32 GetMemUsage() final;
|
||||
};
|
||||
|
|
|
@ -27,10 +27,10 @@ class GSTextureSW final : public GSTexture
|
|||
|
||||
public:
|
||||
GSTextureSW(Type type, int width, int height);
|
||||
virtual ~GSTextureSW();
|
||||
~GSTextureSW() override;
|
||||
|
||||
bool Update(const GSVector4i& r, const void* data, int pitch, int layer = 0);
|
||||
bool Map(GSMap& m, const GSVector4i* r = NULL, int layer = 0);
|
||||
void Unmap();
|
||||
bool Save(const std::string& fn);
|
||||
bool Update(const GSVector4i& r, const void* data, int pitch, int layer = 0) override;
|
||||
bool Map(GSMap& m, const GSVector4i* r = NULL, int layer = 0) override;
|
||||
void Unmap() override;
|
||||
bool Save(const std::string& fn) override;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue