- use a unique_ptr for the GL debug object.

This doesn’t get shared and the containing class doesn’t need to be copied so this is sufficient.
This commit is contained in:
Christoph Oelckers 2022-06-07 00:11:56 +02:00
commit c7798d5503
3 changed files with 2 additions and 5 deletions

View file

@ -175,7 +175,7 @@ void OpenGLFrameBuffer::InitializeState()
GLRenderer->Initialize(GetWidth(), GetHeight());
static_cast<GLDataBuffer*>(mLights->GetBuffer())->BindBase();
mDebug = std::make_shared<FGLDebug>();
mDebug = std::make_unique<FGLDebug>();
mDebug->Update();
}