Add virtual deconstructor override
Virtual classes need to override the base-type deconstructor so that they are proper called when referred to by their base-type.
This commit is contained in:
@@ -68,6 +68,7 @@ class RendererGL final : public Renderer {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
RendererGL(GPU& gpu, const std::array<u32, regNum>& internalRegs) : Renderer(gpu, internalRegs) {}
|
RendererGL(GPU& gpu, const std::array<u32, regNum>& internalRegs) : Renderer(gpu, internalRegs) {}
|
||||||
|
~RendererGL() override;
|
||||||
|
|
||||||
void reset() override;
|
void reset() override;
|
||||||
void display() override; // Display the 3DS screen contents to the window
|
void display() override; // Display the 3DS screen contents to the window
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ using namespace Floats;
|
|||||||
using namespace Helpers;
|
using namespace Helpers;
|
||||||
using namespace PICA;
|
using namespace PICA;
|
||||||
|
|
||||||
|
RendererGL::~RendererGL() {}
|
||||||
|
|
||||||
void RendererGL::reset() {
|
void RendererGL::reset() {
|
||||||
depthBufferCache.reset();
|
depthBufferCache.reset();
|
||||||
colourBufferCache.reset();
|
colourBufferCache.reset();
|
||||||
|
|||||||
Reference in New Issue
Block a user