From 31a7e42f4baa059352f0db119de38428e655eab2 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Tue, 26 Oct 2010 13:09:17 -0700 Subject: Begin adding async allocation creation. Change-Id: I5d1381699e2b334c1d824f357bd6b310a5f79be8 Implement async bitmap upload and clean up types. Change-Id: Icbe9894e04c1319351c1cd75b0e0017855198f20 --- libs/rs/rsProgramVertex.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libs/rs/rsProgramVertex.cpp') diff --git a/libs/rs/rsProgramVertex.cpp b/libs/rs/rsProgramVertex.cpp index d12439f..4e64008 100644 --- a/libs/rs/rsProgramVertex.cpp +++ b/libs/rs/rsProgramVertex.cpp @@ -257,10 +257,7 @@ void ProgramVertexState::init(Context *rsc) rsc->mStateElement.elementBuilderAdd(f2Elem, "texture0", 1); const Element *attrElem = rsc->mStateElement.elementBuilderCreate(rsc); - Type *inputType = new Type(rsc); - inputType->setElement(constInput); - inputType->setDimX(1); - inputType->compute(); + Type *inputType = Type::getType(rsc, constInput, 1, 0, 0, false, false); String8 shaderString(RS_SHADER_INTERNAL); shaderString.append("varying vec4 varColor;\n"); -- cgit v1.1