void HardwareBuffer::suppressHardwareUpdate(BOOL suppress) { mSuppressHardwareUpdate = suppress; if (!suppress) { _updateFromShadow(); } }
void HardwareBuffer::unlock() { assert(isLocked() && "Cannot unlock this buffer, it is not locked!"); if (mUseShadowBuffer && mShadowBuffer->isLocked()) { mShadowBuffer->unlock(); _updateFromShadow(); } else { unlockImpl(); mIsLocked = FALSE; } }
void GLES2HardwareIndexBuffer::notifyOnContextReset() { createBuffer(); mShadowUpdated = true; _updateFromShadow(); }