mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-23 20:20:09 +00:00
Remove virtual inheritance from RendererOpenGL
Also make destructor virtual so that instances are properly destructed.
This commit is contained in:
parent
7122c46937
commit
83973f3ba6
@ -19,7 +19,7 @@ public:
|
|||||||
RendererBase() : m_current_fps(0), m_current_frame(0) {
|
RendererBase() : m_current_fps(0), m_current_frame(0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
~RendererBase() {
|
virtual ~RendererBase() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Swap buffers (render frame)
|
/// Swap buffers (render frame)
|
||||||
|
@ -13,11 +13,11 @@
|
|||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
class RendererOpenGL : virtual public RendererBase {
|
class RendererOpenGL : public RendererBase {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
RendererOpenGL();
|
RendererOpenGL();
|
||||||
~RendererOpenGL();
|
~RendererOpenGL() override;
|
||||||
|
|
||||||
/// Swap buffers (render frame)
|
/// Swap buffers (render frame)
|
||||||
void SwapBuffers();
|
void SwapBuffers();
|
||||||
|
Loading…
Reference in New Issue
Block a user