Add Queue_count for render queues

This commit is contained in:
Nite Luo 2015-01-27 11:12:51 -08:00
parent 75253d66ff
commit 3c635d044e
2 changed files with 2 additions and 1 deletions

View File

@ -129,7 +129,7 @@ RenderCommand* RenderQueue::operator[](ssize_t index) const
void RenderQueue::clear()
{
_commands.clear();
for(int index = GLOBALZ_NEG; index <= GLOBALZ_POS; ++index)
for(int index = 0; index < QUEUE_COUNT; ++index)
{
_commands.push_back(std::vector<RenderCommand*>());
}

View File

@ -56,6 +56,7 @@ public:
GLOBALZ_ZERO = 3,
GLOBALZ_POS = 4,
QUEUE_GROUP_SIZE = 5,
QUEUE_COUNT,
};
public: