Add missing initialization

fix-osga-rotate-wildly
Andrei Kortunov 10 months ago
parent 6d35b626cf
commit fc1f244627

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

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

Loading…
Cancel
Save