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

Commit 5fda65f1 authored by Joe Onorato's avatar Joe Onorato
Browse files

Add a method to destroy the RS object.

parent cc89ef3d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -153,6 +153,9 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback
        return createRenderScript(useDepth, false);
    }


    public void destroyRenderScript() {
        mRS.destroy();
        mRS = null;
    }
}