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

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

Merge "Be more conservative about current buffer" into lmp-mr1-dev

parents 81aef807 950ff1b8
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -105,12 +105,11 @@ bool EglManager::hasEglContext() {
void EglManager::requireGlContext() {
    LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "No EGL context");

    // We don't care *WHAT* surface is active, just that one is active to give
    // us access to the GL context
    if (mCurrentSurface == EGL_NO_SURFACE) {
    // We can't be certain about the state of the current surface (whether
    // or not it is destroyed, for example), so err on the side of using
    // the pbuffer surface which we fully control
    usePBufferSurface();
}
}

void EglManager::loadConfig() {
    EGLint swapBehavior = mCanSetPreserveBuffer ? EGL_SWAP_BEHAVIOR_PRESERVED_BIT : 0;