Fix RenderScriptGL setSurfaceTexture problem

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

Change-Id: I066432575c9e74f21ea3a3776628b572b6e31377
Signed-off-by: Xiaofei Wan <xiaofei.wan@intel.com>
This commit is contained in:
Xiaofei Wan
2014-03-31 14:26:20 +08:00
parent 1e4cad8198
commit 21e0af987d

View File

@@ -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);
}
/**