summaryrefslogtreecommitdiffstats
path: root/rsProgramFragment.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-12-08 16:14:36 -0800
committerJason Sams <rjsams@android.com>2010-12-08 16:14:36 -0800
commit366c9c85196675437a8dd74c1cf6b63ddbde3d6a (patch)
tree5c2fa953f13572a1bfb052ba0062ade982a9e06b /rsProgramFragment.cpp
parentf17b13be814135b85e6aed7e3cca441c8e00e8c4 (diff)
downloadandroid_frameworks_rs-366c9c85196675437a8dd74c1cf6b63ddbde3d6a.tar.gz
android_frameworks_rs-366c9c85196675437a8dd74c1cf6b63ddbde3d6a.tar.bz2
android_frameworks_rs-366c9c85196675437a8dd74c1cf6b63ddbde3d6a.zip
Allocation API update.
Change-Id: I9b4a71f9e94c7d3978f06b7971051ab4f8472503
Diffstat (limited to 'rsProgramFragment.cpp')
-rw-r--r--rsProgramFragment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsProgramFragment.cpp b/rsProgramFragment.cpp
index 0713fb37..22cd5d39 100644
--- a/rsProgramFragment.cpp
+++ b/rsProgramFragment.cpp
@@ -204,7 +204,7 @@ void ProgramFragmentState::init(Context *rsc) {
tmp[0] = RS_PROGRAM_PARAM_CONSTANT;
tmp[1] = (uint32_t)inputType;
- Allocation *constAlloc = new Allocation(rsc, inputType);
+ Allocation *constAlloc = new Allocation(rsc, inputType, RS_ALLOCATION_USAGE_SCRIPT | RS_ALLOCATION_USAGE_GRAPHICS_CONSTANTS);
ProgramFragment *pf = new ProgramFragment(rsc, shaderString.string(),
shaderString.length(), tmp, 2);
pf->bindAllocation(rsc, constAlloc, 0);