Change-Id: I46b75f9d7b6dd18aefebce845acbb7a46d258ffc
firstFit = InsertNode( mRoot->child[1], blockWidth, blockHeight );
}
firstFit = InsertNode( mRoot->child[1], blockWidth, blockHeight );
}
- if( firstFit != NULL )
- {
- firstFit->occupied = true;
- packPositionX = firstFit->rectArea.x;
- packPositionY = firstFit->rectArea.y;
- }
+ DALI_ASSERT_ALWAYS( firstFit != NULL && "It should never happen!")
+
+ firstFit->occupied = true;
+ packPositionX = firstFit->rectArea.x;
+ packPositionY = firstFit->rectArea.y;
}
void AtlasPacker::GrowNode( SizeType blockWidth, SizeType blockHeight )
}
void AtlasPacker::GrowNode( SizeType blockWidth, SizeType blockHeight )