Code: Select all
HlmsDatablock::~HlmsDatablock()
{
assert( mLinkedRenderables.empty() &&
"This Datablock is still being used by some Renderables."
" Change their Datablocks before destroying this." );
Code: Select all
HlmsDatablock::~HlmsDatablock()
{
assert( mLinkedRenderables.empty() &&
"This Datablock is still being used by some Renderables."
" Change their Datablocks before destroying this." );
Code: Select all
#if OGRE_DEBUG_MODE
{
uint32 currentFrame = mVaoManager->getFrameCount();
if( mLastFrameMappedAndAdvanced == currentFrame )
{
OGRE_EXCEPT( Exception::ERR_INVALID_STATE,
"Mapping the buffer twice within the same frame detected! "
"This is not allowed.", "BufferPacked::map" );
}