fix: renderscript compilation should work for old platforms

This commit is contained in:
Eugene Kudelevsky
2012-04-19 23:04:41 +04:00
parent 79493c8877
commit 7e2b63e88d
@@ -57,7 +57,11 @@ public class AndroidRenderscript {
command.add(FileUtil.toSystemDependentName(rawDirPath));
command.add("-target-api");
command.add(Integer.toString(target.getVersion().getApiLevel()));
int targetApi = target.getVersion().getApiLevel();
if (targetApi < 11) {
targetApi = 11;
}
command.add(Integer.toString(targetApi));
if (depFolderPath != null) {
command.add("-d");