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

Commit f27bbc23 authored by Jamie Gennis's avatar Jamie Gennis Committed by Android (Google) Code Review
Browse files

Merge "Clear all EGL errors when entering EGL funcs."

parents c999a4ca e3b179c7
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -389,10 +389,9 @@ static tls_t* getTLS()
}

static inline void clearError() {
    if (gEGLThreadLocalStorageKey != -1) {
        tls_t* tls = getTLS();
        tls->error = EGL_SUCCESS;
    }
    // This must clear the error from all the underlying EGL implementations as
    // well as the EGL wrapper layer.
    eglGetError();
}

template<typename T>