From ad17727da548a2e16df1448c31e2f0c1f6507a04 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Tue, 24 May 2011 12:58:37 -0700 Subject: [PATCH] Fix build error post Allocation hal split. Change-Id: I76f89c4b1cb685f1ae26f47ed84bfe066b96b1d4 --- tools/a3dconvert/SimpleMesh.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/a3dconvert/SimpleMesh.h b/tools/a3dconvert/SimpleMesh.h index 4efd8383f..15205cb31 100644 --- a/tools/a3dconvert/SimpleMesh.h +++ b/tools/a3dconvert/SimpleMesh.h @@ -90,7 +90,7 @@ public: Type *vertexDataType = Type::getType(rsc, vertexDataElem, numVerts, 0, 0, false, false); vertexDataType->compute(); - Allocation *vertexAlloc = new Allocation(rsc, vertexDataType, RS_ALLOCATION_USAGE_SCRIPT); + Allocation *vertexAlloc = Allocation::createAllocation(rsc, vertexDataType, RS_ALLOCATION_USAGE_SCRIPT); uint32_t vertexSize = vertexDataElem->getSizeBytes()/sizeof(float); // Fill this allocation with some data @@ -126,7 +126,7 @@ public: indexType->compute(); - Allocation *indexAlloc = new Allocation(rsc, indexType, RS_ALLOCATION_USAGE_SCRIPT); + Allocation *indexAlloc = Allocation::createAllocation(rsc, indexType, RS_ALLOCATION_USAGE_SCRIPT); uint16_t *indexPtr = (uint16_t*)indexAlloc->getPtr(); const std::vector &indexList = mTriangleLists[pCount]; uint32_t numTries = numIndicies / 3;