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

Commit 795072ec authored by Jason Sams's avatar Jason Sams
Browse files

Fix crash running old HC apps.

Change-Id: If7206de334868cb40eb8e5dd04fbe8c70bc1d614
parent 40047fa1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -302,7 +302,10 @@ void rsdScriptInvokeForEach(const Context *rsc,
    DrvScript *drv = (DrvScript *)s->mHal.drv;
    // We only support slot 0 (root) at this point in time.
    rsAssert(slot == 0);
    mtls.sig = 0x1f;  // temp fix for old apps, full table in slang_rs_export_foreach.cpp
    if (drv->mExportForEachSignatureList) {
        mtls.sig = drv->mExportForEachSignatureList[slot];
    }
    if (ain) {
        mtls.dimX = ain->getType()->getDimX();
        mtls.dimY = ain->getType()->getDimY();