diff options
author | Jason Sams <rjsams@android.com> | 2011-10-04 15:46:57 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2011-10-04 15:46:57 -0700 |
commit | 795072ec7b489c84ce233be586d1ae85ffed8cd3 (patch) | |
tree | 7a9d84cf7ad4bf4fcf45a258072e3e330531643d /libs | |
parent | 40047fa14df169bece9c8d28bdbc515030d37383 (diff) | |
download | frameworks_base-795072ec7b489c84ce233be586d1ae85ffed8cd3.zip frameworks_base-795072ec7b489c84ce233be586d1ae85ffed8cd3.tar.gz frameworks_base-795072ec7b489c84ce233be586d1ae85ffed8cd3.tar.bz2 |
Fix crash running old HC apps.
Change-Id: If7206de334868cb40eb8e5dd04fbe8c70bc1d614
Diffstat (limited to 'libs')
-rw-r--r-- | libs/rs/driver/rsdBcc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/rs/driver/rsdBcc.cpp b/libs/rs/driver/rsdBcc.cpp index 0755fb7..5fd5c35 100644 --- a/libs/rs/driver/rsdBcc.cpp +++ b/libs/rs/driver/rsdBcc.cpp @@ -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 = drv->mExportForEachSignatureList[slot]; + 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(); |