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

Commit d435b56a authored by Michael Lentine's avatar Michael Lentine Committed by Android Git Automerger
Browse files

am 4d7c4100: Merge "Destroy eglSurface before recreating." into lmp-dev

* commit '4d7c4100':
  Destroy eglSurface before recreating.
parents 3d5e4e95 4d7c4100
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -401,6 +401,11 @@ status_t DisplayDevice::orientationToTransfrom(
void DisplayDevice::setDisplaySize(const int newWidth, const int newHeight) {
    dirtyRegion.set(getBounds());

    if (mSurface != EGL_NO_SURFACE) {
        eglDestroySurface(mDisplay, mSurface);
        mSurface = EGL_NO_SURFACE;
    }

    mDisplaySurface->resizeBuffers(newWidth, newHeight);

    ANativeWindow* const window = mNativeWindow.get();