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

Commit 21e0af98 authored by Xiaofei Wan's avatar Xiaofei Wan
Browse files

Fix RenderScriptGL setSurfaceTexture problem



rsnContextSetSurfaceTexture() has no implementation in rs-jni, use nContextSetSurface() in setSurfaceTexture().

Change-Id: I066432575c9e74f21ea3a3776628b572b6e31377
Signed-off-by: default avatarXiaofei Wan <xiaofei.wan@intel.com>
parent 1e4cad81
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -232,9 +232,13 @@ public class RenderScriptGL extends RenderScript {
        validate();
        //android.util.Log.v("rs", "set surface " + sur + " w=" + w + ", h=" + h);

        Surface s = null;
        if (sur != null) {
            s = new Surface(sur);
        }
        mWidth = w;
        mHeight = h;
        nContextSetSurfaceTexture(w, h, sur);
        nContextSetSurface(w, h, s);
    }

    /**