Fix member vars left uninitialized in constructors

This commit is contained in:
Ben Payne 2015-02-10 17:02:15 -05:00
parent 3fe0fe1b92
commit 0ffd7f5620
23 changed files with 68 additions and 19 deletions

View file

@ -64,7 +64,7 @@ public:
};
GFXGLShaderConstHandle::GFXGLShaderConstHandle( GFXGLShader *shader )
: mShader( shader ), mSamplerNum(-1), mInstancingConstant(false)
: mShader( shader ), mLocation(0), mOffset(0), mSize(0), mSamplerNum(-1), mInstancingConstant(false)
{
mValid = false;
}

View file

@ -103,7 +103,7 @@ class TheoraTextureFrame
F32 mFrameDuration;
TheoraTextureFrame()
: mLockedRect( NULL )
: mLockedRect( NULL ), mFrameNumber(0), mFrameTime(0.0f), mFrameDuration(0.0f)
{
}
};

View file

@ -193,7 +193,7 @@ class VideoEncoderTheora : public VideoEncoder, public Thread
public:
VideoEncoderTheora() :
mLastFrame(NULL)
mCurrentFrame(0), td(NULL), mLastFrame(NULL)
{
setStatus(false);
}