Permalink
Browse files

GL: Also skip gl calls in ThreadEnd during shutdown on Android. May h…

…elp #11063
  • Loading branch information...
hrydgard committed Oct 21, 2018
1 parent fd20d7b commit 292d2f44ee47f36cf99cddcef6c11e0c38ecbcff
Showing with 3 additions and 2 deletions.
  1. +3 −2 ext/native/thin3d/GLRenderManager.cpp
@@ -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];
}

0 comments on commit 292d2f4

Please sign in to comment.