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

Commit 8446681e 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 30faa241 f1cde8e0
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>