From 7e8aae7f76f221905fba7ccbcb3442c6f96dfad2 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Thu, 26 May 2011 16:33:01 -0700 Subject: Start splitting allocation into hal and core. Change-Id: Ic506abb0469238cb0471eb1401cfcb7b2fbbe4bb --- libs/rs/rsProgramVertex.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/rs/rsProgramVertex.cpp') diff --git a/libs/rs/rsProgramVertex.cpp b/libs/rs/rsProgramVertex.cpp index 534e8a607bf5..e6790cb3aee4 100644 --- a/libs/rs/rsProgramVertex.cpp +++ b/libs/rs/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); -- cgit v1.2.3-59-g8ed1b