Пример #1
0
void Buffer::unlock()
{
	assert((isLocked()) && "Cannot unlock this buffer, it is not locked!");

	// Otherwise, unlock the real one
	unlockImpl();
	mIsLocked = false;
}
Пример #2
0
void HardwareBuffer::unlock()
{
    assert(isLocked() && "Cannot unlock this buffer, it is not locked!");
    if (mUseShadowBuffer && mShadowBuffer->isLocked())
    {
        mShadowBuffer->unlock();
        _updateFromShadow();
    }
    else
    {
        unlockImpl();
        mIsLocked = FALSE;
    }
}