Fixed do-while

Former-commit-id: 08f2520ddee6e6f006f04d60df4a3da52b2ec356
This commit is contained in:
Lynix 2015-01-16 12:46:42 +01:00
parent fbcdd6bb2b
commit 3139e80902
1 changed files with 2 additions and 0 deletions

View File

@ -226,6 +226,8 @@ void NzForwardRenderTechnique::DrawBasicSprites(const NzScene* scene) const
NzVertexStruct_XYZ_Color_UV* vertices = reinterpret_cast<NzVertexStruct_XYZ_Color_UV*>(vertexMapper.GetPointer());
unsigned int spriteCount = 0;
do
{
NzForwardRenderQueue::SpriteChain_XYZ_Color_UV& currentChain = spriteChainVector[spriteChain];
unsigned int count = std::min(s_maxSprites - spriteCount, currentChain.spriteCount - spriteChainOffset);