Example #1
0
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();
 }
Example #3
0
void DiGLTextureDrv::CopyFromMemory(const DiPixelBox &srcBox, const DiBox &dst, uint32 level, uint32 surface /*= 0*/)
{
    AllocateBuffer();
    Upload(srcBox, dst, level, surface);
    DeallocateBuffer();
}
Example #4
0
CVoiceDataPacket::~CVoiceDataPacket ( )
{
    DeallocateBuffer ( );
}