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:
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…
x
Reference in New Issue
Block a user