summaryrefslogtreecommitdiff
path: root/rsProgramVertex.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-10-26 13:09:17 -0700
committerJason Sams <rjsams@android.com>2010-10-26 13:09:17 -0700
commitf0c1df480304a72ce41e7d4b088319cbd7f0938a (patch)
tree3e49b31c4490d4b8d7e0ff7893ef0e4e9c7063ee /rsProgramVertex.cpp
parent1f9ba735cc429ae8df140644f6f0a4481f2a8068 (diff)
downloadrs-f0c1df480304a72ce41e7d4b088319cbd7f0938a.tar.gz
Begin adding async allocation creation.
Change-Id: I5d1381699e2b334c1d824f357bd6b310a5f79be8 Implement async bitmap upload and clean up types. Change-Id: Icbe9894e04c1319351c1cd75b0e0017855198f20
Diffstat (limited to 'rsProgramVertex.cpp')
-rw-r--r--rsProgramVertex.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/rsProgramVertex.cpp b/rsProgramVertex.cpp
index d12439f8..4e64008c 100644
--- a/rsProgramVertex.cpp
+++ b/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");