mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2025-12-01 12:11:20 +00:00
fix: ensure all Init() calls invoke base class methods for proper init
This commit is contained in:
@ -22,7 +22,9 @@ public:
|
|||||||
// Mark override for clarity and to avoid hiding warnings
|
// Mark override for clarity and to avoid hiding warnings
|
||||||
void Init() override
|
void Init() override
|
||||||
{
|
{
|
||||||
|
// Call both base class Init() to ensure proper initialization
|
||||||
OpenGLRenderItem::Init();
|
OpenGLRenderItem::Init();
|
||||||
|
CopyTexture::Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
using OpenGLRenderItem::Init; // Unhide base Init() to avoid -Woverloaded-virtual warning
|
using OpenGLRenderItem::Init; // Unhide base Init() to avoid -Woverloaded-virtual warning
|
||||||
|
|||||||
@ -24,7 +24,9 @@ public:
|
|||||||
// Mark override for clarity and to avoid hiding warnings
|
// Mark override for clarity and to avoid hiding warnings
|
||||||
void Init() override
|
void Init() override
|
||||||
{
|
{
|
||||||
|
// Call both base class Init() to ensure proper initialization
|
||||||
OpenGLRenderItem::Init();
|
OpenGLRenderItem::Init();
|
||||||
|
PresetTransition::Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
using OpenGLRenderItem::Init; // Unhide base Init() to avoid -Woverloaded-virtual warning
|
using OpenGLRenderItem::Init; // Unhide base Init() to avoid -Woverloaded-virtual warning
|
||||||
|
|||||||
@ -25,7 +25,8 @@ public:
|
|||||||
void Init() override;
|
void Init() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
using ::libprojectM::Renderer::RenderItem::Init; // Unhide base Init() to avoid -Woverloaded-virtual warning
|
// Unhide base Init() to avoid -Woverloaded-virtual warning and allow calling base from derived
|
||||||
|
using ::libprojectM::Renderer::RenderItem::Init;
|
||||||
GLuint m_vboID{0};
|
GLuint m_vboID{0};
|
||||||
GLuint m_vaoID{0};
|
GLuint m_vaoID{0};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user