summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jason Sams <jsams@google.com> 2014-12-02 17:24:17 -0800
committer Jason Sams <jsams@google.com> 2014-12-02 17:24:17 -0800
commitbb7e86ff0478ef9ea2e35065bfcb2d6e9ffa9292 (patch)
tree155ae95670fafe770133c1244c4e7e5e110cfd27
parent3bec50908b8438c04a654a3bb806f05a01402ce7 (diff)
Fix bug in passing of context flags and version.
bug 18592099 Change-Id: Id20906f6f47b573d881025453a3b6356bcf6e9c7
-rw-r--r--rs/jni/android_renderscript_RenderScript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rs/jni/android_renderscript_RenderScript.cpp b/rs/jni/android_renderscript_RenderScript.cpp
index 13a649a2b6af..5f5b65e6b5af 100644
--- a/rs/jni/android_renderscript_RenderScript.cpp
+++ b/rs/jni/android_renderscript_RenderScript.cpp
@@ -240,10 +240,10 @@ nDeviceSetConfig(JNIEnv *_env, jobject _this, jlong dev, jint p, jint value)
}
static jlong
-nContextCreate(JNIEnv *_env, jobject _this, jlong dev, jint ver, jint sdkVer, jint ct)
+nContextCreate(JNIEnv *_env, jobject _this, jlong dev, jint flags, jint sdkVer, jint contextType)
{
LOG_API("nContextCreate");
- return (jlong)(uintptr_t)rsContextCreate((RsDevice)dev, ver, sdkVer, (RsContextType)ct, 0);
+ return (jlong)(uintptr_t)rsContextCreate((RsDevice)dev, 0, sdkVer, (RsContextType)contextType, flags);
}
static jlong