mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
uninitialized variables-gfx
This commit is contained in:
parent
1efb687867
commit
b9c207765e
33 changed files with 108 additions and 43 deletions
|
|
@ -33,15 +33,24 @@
|
|||
|
||||
GFXGLTextureObject::GFXGLTextureObject(GFXDevice * aDevice, GFXTextureProfile *profile) :
|
||||
GFXTextureObject(aDevice, profile),
|
||||
mIsNPoT2(false),
|
||||
mBinding(GL_TEXTURE_2D),
|
||||
mBytesPerTexel(4),
|
||||
mLockedRectRect(0, 0, 0, 0),
|
||||
mGLDevice(static_cast<GFXGLDevice*>(mDevice)),
|
||||
mIsZombie(false),
|
||||
mZombieCache(NULL),
|
||||
mNeedInitSamplerState(true),
|
||||
mFrameAllocatorMark(0),
|
||||
mFrameAllocatorPtr(NULL)
|
||||
{
|
||||
|
||||
#if TORQUE_DEBUG
|
||||
mFrameAllocatorMarkGuard == FrameAllocator::getWaterMark();
|
||||
#endif
|
||||
|
||||
dMemset(&mLockedRect, 0, sizeof(mLockedRect));
|
||||
|
||||
AssertFatal(dynamic_cast<GFXGLDevice*>(mDevice), "GFXGLTextureObject::GFXGLTextureObject - Invalid device type, expected GFXGLDevice!");
|
||||
glGenTextures(1, &mHandle);
|
||||
glGenBuffers(1, &mBuffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue