summaryrefslogtreecommitdiff
path: root/rsScriptC.cpp
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2015-04-13 20:11:48 -0700
committerStephen Hines <srhines@google.com>2015-04-14 18:47:04 -0700
commit5d95a78ab5758c2625949d78bb67eb3c5d9701cc (patch)
tree6e2615956979ef90f7dd6d2a8f23c941afc0ed97 /rsScriptC.cpp
parent893754fc6016d6c144788ec94a7db55d1061ef18 (diff)
downloadrs-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.cpp4
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;
}