fix: ensure all Init() calls invoke base class methods for proper init

This commit is contained in:
Mischa Spiegelmock (aider) 2025-04-17 13:49:52 -07:00
parent 5cdddf9aef
commit e136655571
3 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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};
};