|
@@ -33,15 +33,24 @@
|
|
|
|
|
|
GFXGLTextureObject::GFXGLTextureObject(GFXDevice * aDevice, GFXTextureProfile *profile) :
|
|
GFXGLTextureObject::GFXGLTextureObject(GFXDevice * aDevice, GFXTextureProfile *profile) :
|
|
GFXTextureObject(aDevice, profile),
|
|
GFXTextureObject(aDevice, profile),
|
|
|
|
+ mIsNPoT2(false),
|
|
mBinding(GL_TEXTURE_2D),
|
|
mBinding(GL_TEXTURE_2D),
|
|
mBytesPerTexel(4),
|
|
mBytesPerTexel(4),
|
|
mLockedRectRect(0, 0, 0, 0),
|
|
mLockedRectRect(0, 0, 0, 0),
|
|
mGLDevice(static_cast<GFXGLDevice*>(mDevice)),
|
|
mGLDevice(static_cast<GFXGLDevice*>(mDevice)),
|
|
|
|
+ mIsZombie(false),
|
|
mZombieCache(NULL),
|
|
mZombieCache(NULL),
|
|
mNeedInitSamplerState(true),
|
|
mNeedInitSamplerState(true),
|
|
mFrameAllocatorMark(0),
|
|
mFrameAllocatorMark(0),
|
|
mFrameAllocatorPtr(NULL)
|
|
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!");
|
|
AssertFatal(dynamic_cast<GFXGLDevice*>(mDevice), "GFXGLTextureObject::GFXGLTextureObject - Invalid device type, expected GFXGLDevice!");
|
|
glGenTextures(1, &mHandle);
|
|
glGenTextures(1, &mHandle);
|
|
glGenBuffers(1, &mBuffer);
|
|
glGenBuffers(1, &mBuffer);
|