mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2025-10-29 11:24:21 +00:00
fix: ensure all Init() calls invoke base class methods for proper init
This commit is contained in:
parent
5cdddf9aef
commit
e136655571
@ -22,7 +22,9 @@ public:
|
||||
// Mark override for clarity and to avoid hiding warnings
|
||||
void Init() override
|
||||
{
|
||||
// Call both base class Init() to ensure proper initialization
|
||||
OpenGLRenderItem::Init();
|
||||
CopyTexture::Init();
|
||||
}
|
||||
|
||||
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
|
||||
void Init() override
|
||||
{
|
||||
// Call both base class Init() to ensure proper initialization
|
||||
OpenGLRenderItem::Init();
|
||||
PresetTransition::Init();
|
||||
}
|
||||
|
||||
using OpenGLRenderItem::Init; // Unhide base Init() to avoid -Woverloaded-virtual warning
|
||||
|
||||
@ -25,7 +25,8 @@ public:
|
||||
void Init() override;
|
||||
|
||||
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_vaoID{0};
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user