Reverse order of draw in ScreenStack
Some checks failed
Build and Publish WASM version of demo / Build-And-Deploy (push) Failing after 6s
Some checks failed
Build and Publish WASM version of demo / Build-And-Deploy (push) Failing after 6s
Draws should be in order from bottom to top.
This commit is contained in:
parent
9a99e8f264
commit
f091bbf0fd
1 changed files with 1 additions and 2 deletions
|
@ -62,8 +62,7 @@ void ScreenStack::update(float dt) {
|
|||
}
|
||||
|
||||
void ScreenStack::draw() {
|
||||
auto idx = stack.size();
|
||||
while (idx > 0 && stack.at(--idx)->draw()) {
|
||||
for (auto idx = 0; idx < size.size() && stack.at(idx)->draw(); ++idx) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue