void DiGLTextureDrv::UnlockLevel(uint32 level, uint32 surface) { if (mCurrentLockFlag != LOCK_READ_ONLY) { DiBox lockbox(0, 0, mBuffer->GetWidth(), mBuffer->GetHeight()); Upload(*mBuffer, lockbox, level, surface); } DeallocateBuffer(); }
~SlidingWindow() { DeallocateBuffer(); }
void DiGLTextureDrv::CopyFromMemory(const DiPixelBox &srcBox, const DiBox &dst, uint32 level, uint32 surface /*= 0*/) { AllocateBuffer(); Upload(srcBox, dst, level, surface); DeallocateBuffer(); }
CVoiceDataPacket::~CVoiceDataPacket ( ) { DeallocateBuffer ( ); }