Skip to content

Commit

Permalink
Update drawpool.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah committed Nov 25, 2023
1 parent a7866a4 commit 4489125
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/framework/graphics/drawpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#include "../stdext/storage.h"

#define MAX_DRAW_DEPTH 15
#define MAX_DRAW_DEPTH 8 // (15 / 2) + 1

enum class DrawPoolType : uint8_t
{
Expand Down Expand Up @@ -233,8 +233,8 @@ class DrawPool
return false;

m_objectsDraw.clear();
for (int_fast8_t depth = 0; depth <= MAX_DRAW_DEPTH; ++depth) {
for (int_fast8_t order = 0; order < static_cast<uint8_t>(DrawOrder::LAST); ++order) {
for (int_fast8_t depth = -1; ++depth <= m_depthLevel;) {
for (int_fast8_t order = -1; ++order < static_cast<uint8_t>(DrawOrder::LAST);) {
auto& objs = m_objects[depth][order];
m_objectsDraw.insert(m_objectsDraw.end(), make_move_iterator(objs.begin()), make_move_iterator(objs.end()));
}
Expand Down

0 comments on commit 4489125

Please sign in to comment.