summaryrefslogtreecommitdiffstats
path: root/rsProgramVertex.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2011-05-26 16:33:01 -0700
committerJason Sams <rjsams@android.com>2011-05-26 16:33:01 -0700
commiteb4fe18dd88634330f9566cbb9e785d8c7ec5813 (patch)
tree4e9d96b4eb0d0e2678eefd67d564cc38e0ec7885 /rsProgramVertex.cpp
parent789ca83c794cb7196c9bac97d39eaf1f7947af2a (diff)
downloadandroid_frameworks_rs-eb4fe18dd88634330f9566cbb9e785d8c7ec5813.tar.gz
android_frameworks_rs-eb4fe18dd88634330f9566cbb9e785d8c7ec5813.tar.bz2
android_frameworks_rs-eb4fe18dd88634330f9566cbb9e785d8c7ec5813.zip
Start splitting allocation into hal and core.
Change-Id: Ic506abb0469238cb0471eb1401cfcb7b2fbbe4bb
Diffstat (limited to 'rsProgramVertex.cpp')
-rw-r--r--rsProgramVertex.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/rsProgramVertex.cpp b/rsProgramVertex.cpp
index 534e8a60..e6790cb3 100644
--- a/rsProgramVertex.cpp
+++ b/rsProgramVertex.cpp
@@ -189,7 +189,8 @@ void ProgramVertexState::init(Context *rsc) {
ProgramVertex *pv = new ProgramVertex(rsc, shaderString.string(),
shaderString.length(), tmp, 4);
- Allocation *alloc = new Allocation(rsc, inputType, RS_ALLOCATION_USAGE_SCRIPT | RS_ALLOCATION_USAGE_GRAPHICS_CONSTANTS);
+ Allocation *alloc = Allocation::createAllocation(rsc, inputType,
+ RS_ALLOCATION_USAGE_SCRIPT | RS_ALLOCATION_USAGE_GRAPHICS_CONSTANTS);
pv->bindAllocation(rsc, alloc, 0);
mDefaultAlloc.set(alloc);