summaryrefslogtreecommitdiffstats
path: root/rsProgramVertex.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-09-01 13:50:47 -0700
committerJason Sams <rjsams@android.com>2010-09-01 14:23:13 -0700
commit5192f45b1ab8dc49d5ec7c3f235e769180cdb55b (patch)
treedc8337f3a9158944c2b1b135c9e168bde2deaf1a /rsProgramVertex.cpp
parent5f0c84cf464dda719cef65fdc9b4d0980e86b98f (diff)
downloadandroid_frameworks_rs-5192f45b1ab8dc49d5ec7c3f235e769180cdb55b.tar.gz
android_frameworks_rs-5192f45b1ab8dc49d5ec7c3f235e769180cdb55b.tar.bz2
android_frameworks_rs-5192f45b1ab8dc49d5ec7c3f235e769180cdb55b.zip
Remove ACC and other legacy bits from RS.
Change-Id: I12a3b0477f3201ec7ca63564ae2b387ecc89dedf
Diffstat (limited to 'rsProgramVertex.cpp')
-rw-r--r--rsProgramVertex.cpp47
1 files changed, 1 insertions, 46 deletions
diff --git a/rsProgramVertex.cpp b/rsProgramVertex.cpp
index e1628f45..68e37059 100644
--- a/rsProgramVertex.cpp
+++ b/rsProgramVertex.cpp
@@ -70,52 +70,7 @@ static void logMatrix(const char *txt, const float *f)
void ProgramVertex::setupGL(const Context *rsc, ProgramVertexState *state)
{
- if ((state->mLast.get() == this) && !mDirty) {
- return;
- }
- state->mLast.set(this);
-
- const float *f = static_cast<const float *>(mConstants[0]->getPtr());
-
- glMatrixMode(GL_TEXTURE);
- if (mTextureMatrixEnable) {
- glLoadMatrixf(&f[RS_PROGRAM_VERTEX_TEXTURE_OFFSET]);
- } else {
- glLoadIdentity();
- }
-
- glMatrixMode(GL_MODELVIEW);
- glLoadIdentity();
- if (mLightCount) {
-#ifndef ANDROID_RS_BUILD_FOR_HOST // GLES Only
- int v = 0;
- glEnable(GL_LIGHTING);
-
- glLightModelxv(GL_LIGHT_MODEL_TWO_SIDE, &v);
-
- for (uint32_t ct = 0; ct < mLightCount; ct++) {
- const Light *l = mLights[ct].get();
- glEnable(GL_LIGHT0 + ct);
- l->setupGL(ct);
- }
- for (uint32_t ct = mLightCount; ct < MAX_LIGHTS; ct++) {
- glDisable(GL_LIGHT0 + ct);
- }
-#endif //ANDROID_RS_BUILD_FOR_HOST
- } else {
- glDisable(GL_LIGHTING);
- }
-
- if (!f) {
- LOGE("Must bind constants to vertex program");
- }
-
- glMatrixMode(GL_PROJECTION);
- glLoadMatrixf(&f[RS_PROGRAM_VERTEX_PROJECTION_OFFSET]);
- glMatrixMode(GL_MODELVIEW);
- glLoadMatrixf(&f[RS_PROGRAM_VERTEX_MODELVIEW_OFFSET]);
-
- mDirty = false;
+ assert(0);
}
void ProgramVertex::loadShader(Context *rsc) {