diff options
author | Jason Sams <rjsams@android.com> | 2009-11-25 13:22:07 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-11-25 13:22:07 -0800 |
commit | c460e55d78cbe8bee95c5c947dfe541218142a5b (patch) | |
tree | c4044e0961621e61c5fb3be0411a073a688caf2c /rsProgramRaster.cpp | |
parent | e6c6078f301a197f310b0ae0c12031188e7c1b6b (diff) | |
download | rs-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.cpp | 8 |
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() |