Skip to content

Commit 3c1951c

Browse files
Jason SamsAndroid (Google) Code Review
authored andcommitted
Merge "Fix crash running old HC apps."
2 parents f0f2ff1 + 795072e commit 3c1951c

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)