Fixed do-while
Former-commit-id: 08f2520ddee6e6f006f04d60df4a3da52b2ec356
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user