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

Commit 2bec5766 authored by John Reck's avatar John Reck Committed by Android Git Automerger
Browse files

am 76de8982: Merge "Prevent calling GL functions with an invalid surface" into lmp-mr1-dev

* commit '76de8982':
  Prevent calling GL functions with an invalid surface
parents 23dc0563 76de8982
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@ CanvasContext::~CanvasContext() {

void CanvasContext::destroy() {
    stopDrawing();
    setSurface(NULL);
    freePrefetechedLayers();
    destroyHardwareResources();
    mAnimationContext->destroy();
@@ -67,7 +68,6 @@ void CanvasContext::destroy() {
        delete mCanvas;
        mCanvas = 0;
    }
    setSurface(NULL);
}

void CanvasContext::setSurface(ANativeWindow* window) {