fix uninitialized member variables in OcclusionQuery class

deque
Thoronador 10 years ago
parent db38108801
commit 13a0c5624c

@ -19,14 +19,14 @@ using namespace Ogre;
OcclusionQuery::OcclusionQuery(OEngine::Render::OgreRenderer* renderer, SceneNode* sunNode) : OcclusionQuery::OcclusionQuery(OEngine::Render::OgreRenderer* renderer, SceneNode* sunNode) :
mSunTotalAreaQuery(0), mSunVisibleAreaQuery(0), mActiveQuery(0), mSunTotalAreaQuery(0), mSunVisibleAreaQuery(0), mActiveQuery(0),
mDoQuery(0), mSunVisibility(0), mBBQueryVisible(0), mBBQueryTotal(0), mSunNode(sunNode), mBBNodeReal(0),
mSunVisibility(0),
mWasVisible(false), mWasVisible(false),
mActive(false), mActive(false),
mFirstFrame(true) mFirstFrame(true),
mDoQuery(0),
mRendering(renderer)
{ {
mRendering = renderer;
mSunNode = sunNode;
try { try {
RenderSystem* renderSystem = Root::getSingleton().getRenderSystem(); RenderSystem* renderSystem = Root::getSingleton().getRenderSystem();

Loading…
Cancel
Save