summaryrefslogtreecommitdiffstats
path: root/rsProgramVertex.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 /rsProgramVertex.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 'rsProgramVertex.cpp')
-rw-r--r--rsProgramVertex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsProgramVertex.cpp b/rsProgramVertex.cpp
index a28b9bd1..ad2beafb 100644
--- a/rsProgramVertex.cpp
+++ b/rsProgramVertex.cpp
@@ -261,7 +261,7 @@ void ProgramVertexState::init(Context *rsc) {
ProgramVertex *pv = new ProgramVertex(rsc, shaderString.string(),
shaderString.length(), tmp, 4);
- Allocation *alloc = new Allocation(rsc, inputType);
+ Allocation *alloc = new Allocation(rsc, inputType, RS_ALLOCATION_USAGE_SCRIPT | RS_ALLOCATION_USAGE_GRAPHICS_CONSTANTS);
pv->bindAllocation(rsc, alloc, 0);
mDefaultAlloc.set(alloc);