Skip to content

Commit 795072e

Browse files
author
Jason Sams
committed
Fix crash running old HC apps.
Change-Id: If7206de334868cb40eb8e5dd04fbe8c70bc1d614
1 parent 40047fa commit 795072e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libs/rs/driver/rsdBcc.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,10 @@ void rsdScriptInvokeForEach(const Context *rsc,
302302
DrvScript *drv = (DrvScript *)s->mHal.drv;
303303
// We only support slot 0 (root) at this point in time.
304304
rsAssert(slot == 0);
305-
mtls.sig = drv->mExportForEachSignatureList[slot];
305+
mtls.sig = 0x1f; // temp fix for old apps, full table in slang_rs_export_foreach.cpp
306+
if (drv->mExportForEachSignatureList) {
307+
mtls.sig = drv->mExportForEachSignatureList[slot];
308+
}
306309
if (ain) {
307310
mtls.dimX = ain->getType()->getDimX();
308311
mtls.dimY = ain->getType()->getDimY();

0 commit comments

Comments
 (0)