We need to specify a target SDK < 21 to use graphics RS.

Bug: 16031597

This change also removes some unnecessary code from ScriptC construction.

Change-Id: I6680109deb34de841dfade769d556f5060aee423
(cherry picked from commit 8277a692be3c89519e368159e7707c8d35b89475)
This commit is contained in:
Stephen Hines
2014-08-15 16:03:58 -07:00
parent 7a16ffe2e5
commit 28aec0ef24
2 changed files with 2 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ public class ErrorCalculator {
for (int i = 0; i < rowIndices.length; i++)
rowIndices[i] = i * REGION_SIZE;
mScript = new ScriptC_errorCalculator(mRS, resources, R.raw.errorcalculator);
mScript = new ScriptC_errorCalculator(mRS);
mScript.set_HEIGHT(height);
mScript.set_WIDTH(width);
mScript.set_REGION_SIZE(REGION_SIZE);

View File

@@ -25,5 +25,6 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-renderscript-fil
# LOCAL_SDK_VERSION := current
LOCAL_PACKAGE_NAME := RsFountainFbo
LOCAL_SDK_VERSION := 14
include $(BUILD_PACKAGE)