Use proper ScriptCall size in nScriptForEach()
Bug: 26498479
Although the size of struct ScriptCall is not used underneath in the
runtime or drivers, assign the correct value here to avoid confusion.
Change-Id: I8db19538b9f70f3bf9ee849a8724da3d9ee04785
(cherry picked from commit e8f2e445fd)
This commit is contained in:
@@ -2071,6 +2071,8 @@ nScriptForEach(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot,
|
||||
sc.array4End = 0;
|
||||
|
||||
sca = ≻
|
||||
// sc_size is required, but unused, by the runtime and drivers.
|
||||
sc_size = sizeof(sc);
|
||||
}
|
||||
|
||||
rsScriptForEachMulti((RsContext)con, (RsScript)script, slot,
|
||||
|
||||
Reference in New Issue
Block a user