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

Commit 2b551f4c authored by Yang Ni's avatar Yang Ni
Browse files

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 e8f2e445)
parent 0a278b12
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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,