summaryrefslogtreecommitdiff
path: root/rsProgramRaster.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2009-11-25 13:22:07 -0800
committerJason Sams <rjsams@android.com>2009-11-25 13:22:07 -0800
commitc460e55d78cbe8bee95c5c947dfe541218142a5b (patch)
treec4044e0961621e61c5fb3be0411a073a688caf2c /rsProgramRaster.cpp
parente6c6078f301a197f310b0ae0c12031188e7c1b6b (diff)
downloadrs-c460e55d78cbe8bee95c5c947dfe541218142a5b.tar.gz
Begin gl2 support. Renderscript still uses GL1.1 by default. However, 2.0 can be enabled and will render most tests correctly.
Diffstat (limited to 'rsProgramRaster.cpp')
-rw-r--r--rsProgramRaster.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/rsProgramRaster.cpp b/rsProgramRaster.cpp
index 51ae7cf6..f0039f75 100644
--- a/rsProgramRaster.cpp
+++ b/rsProgramRaster.cpp
@@ -86,6 +86,14 @@ void ProgramRaster::setupGL(const Context *rsc, ProgramRasterState *state)
}
}
+void ProgramRaster::setupGL2(const Context *rsc, ProgramRasterState *state)
+{
+ if (state->mLast.get() == this) {
+ return;
+ }
+ state->mLast.set(this);
+}
+
ProgramRasterState::ProgramRasterState()