1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-31 06:32:39 +00:00

Add missing initialization

This commit is contained in:
Andrei Kortunov 2024-02-23 17:01:59 +04:00
parent 6d35b626cf
commit fc1f244627
2 changed files with 1 additions and 3 deletions

View File

@ -316,8 +316,6 @@ Debug::DebugDrawer::DebugDrawer(const DebugDrawer& copy, const osg::CopyOp& copy
Debug::DebugDrawer::DebugDrawer(Shader::ShaderManager& shaderManager)
{
mCurrentFrame = 0;
auto program = shaderManager.getProgram("debug");
setCullingActive(false);

View File

@ -101,7 +101,7 @@ namespace Debug
void addLine(const osg::Vec3& start, const osg::Vec3& end, const osg::Vec3 color = colorWhite);
private:
unsigned int mCurrentFrame;
unsigned int mCurrentFrame = 0;
std::array<osg::ref_ptr<DebugCustomDraw>, 2> mCustomDebugDrawer;
};