mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-02 21:36:44 +00:00
Add missing initialization
This commit is contained in:
parent
6d35b626cf
commit
fc1f244627
2 changed files with 1 additions and 3 deletions
|
@ -316,8 +316,6 @@ Debug::DebugDrawer::DebugDrawer(const DebugDrawer& copy, const osg::CopyOp& copy
|
||||||
|
|
||||||
Debug::DebugDrawer::DebugDrawer(Shader::ShaderManager& shaderManager)
|
Debug::DebugDrawer::DebugDrawer(Shader::ShaderManager& shaderManager)
|
||||||
{
|
{
|
||||||
mCurrentFrame = 0;
|
|
||||||
|
|
||||||
auto program = shaderManager.getProgram("debug");
|
auto program = shaderManager.getProgram("debug");
|
||||||
|
|
||||||
setCullingActive(false);
|
setCullingActive(false);
|
||||||
|
|
|
@ -101,7 +101,7 @@ namespace Debug
|
||||||
void addLine(const osg::Vec3& start, const osg::Vec3& end, const osg::Vec3 color = colorWhite);
|
void addLine(const osg::Vec3& start, const osg::Vec3& end, const osg::Vec3 color = colorWhite);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
unsigned int mCurrentFrame;
|
unsigned int mCurrentFrame = 0;
|
||||||
|
|
||||||
std::array<osg::ref_ptr<DebugCustomDraw>, 2> mCustomDebugDrawer;
|
std::array<osg::ref_ptr<DebugCustomDraw>, 2> mCustomDebugDrawer;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue