Skip to content

Commit

Permalink
GL: Also skip gl calls in ThreadEnd during shutdown on Android. May h…
Browse files Browse the repository at this point in the history
…elp #11063
  • Loading branch information
hrydgard committed Oct 21, 2018
1 parent fd20d7b commit 292d2f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ext/native/thin3d/GLRenderManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ void GLRenderManager::ThreadEnd() {

// Good point to run all the deleters to get rid of leftover objects.
for (int i = 0; i < MAX_INFLIGHT_FRAMES; i++) {
frameData_[i].deleter.Perform(this, false);
frameData_[i].deleter_prev.Perform(this, false);
// Since we're in shutdown, we should skip the GL calls on Android.
frameData_[i].deleter.Perform(this, skipGLCalls_);
frameData_[i].deleter_prev.Perform(this, skipGLCalls_);
for (int j = 0; j < (int)frameData_[i].steps.size(); j++) {
delete frameData_[i].steps[j];
}
Expand Down

0 comments on commit 292d2f4

Please sign in to comment.