Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e4313df authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "eglSwapBuffers can also return EGL_BAD_NATIVE_WINDOW"

parents 20070371 c2547fa6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -333,7 +333,7 @@ bool EglManager::swapBuffers(const Frame& frame, const SkRect& screenDirty) {
    if (CC_LIKELY(err == EGL_SUCCESS)) {
        return true;
    }
    if (err == EGL_BAD_SURFACE) {
    if (err == EGL_BAD_SURFACE || err == EGL_BAD_NATIVE_WINDOW) {
        // For some reason our surface was destroyed out from under us
        // This really shouldn't happen, but if it does we can recover easily
        // by just not trying to use the surface anymore