diff options
author | Stephen Hines <srhines@google.com> | 2015-04-13 20:11:48 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2015-04-14 18:47:04 -0700 |
commit | 5d95a78ab5758c2625949d78bb67eb3c5d9701cc (patch) | |
tree | 6e2615956979ef90f7dd6d2a8f23c941afc0ed97 /rsScriptC.cpp | |
parent | 893754fc6016d6c144788ec94a7db55d1061ef18 (diff) | |
download | rs-5d95a78ab5758c2625949d78bb67eb3c5d9701cc.tar.gz |
Fix issue with older structure sizes
When structures are enlarged in RS we need to use the script
API number to properly handle the older cases.
Bug: 19734267
Change-Id: I0ffd3dc4cea1640f2b14c588df3a93eee749e74e
Diffstat (limited to 'rsScriptC.cpp')
-rw-r--r-- | rsScriptC.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rsScriptC.cpp b/rsScriptC.cpp index 4d791f79..e1685b91 100644 --- a/rsScriptC.cpp +++ b/rsScriptC.cpp @@ -310,6 +310,10 @@ bool ScriptC::runCompiler(Context *rsc, sdkVersion = rsc->getTargetSdkVersion(); } + // Save off the sdkVersion, so that we can handle broken cases later. + // Bug 19734267 + mApiLevel = sdkVersion; + if (BT) { delete BT; } |