forked from suyu/suyu
Remove virtual inheritance from RendererOpenGL
Also make destructor virtual so that instances are properly destructed.
This commit is contained in:
parent
8fb064cd62
commit
787a1b047c
2 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ public:
|
|||
RendererBase() : m_current_fps(0), m_current_frame(0) {
|
||||
}
|
||||
|
||||
~RendererBase() {
|
||||
virtual ~RendererBase() {
|
||||
}
|
||||
|
||||
/// Swap buffers (render frame)
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
|
||||
#include <array>
|
||||
|
||||
class RendererOpenGL : virtual public RendererBase {
|
||||
class RendererOpenGL : public RendererBase {
|
||||
public:
|
||||
|
||||
RendererOpenGL();
|
||||
~RendererOpenGL();
|
||||
~RendererOpenGL() override;
|
||||
|
||||
/// Swap buffers (render frame)
|
||||
void SwapBuffers();
|
||||
|
|
Loading…
Reference in a new issue