From bb51c40d89c7dbdee7d7507fdfe0a64e8f4f87a9 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Wed, 25 Nov 2009 13:22:07 -0800 Subject: Begin gl2 support. Renderscript still uses GL1.1 by default. However, 2.0 can be enabled and will render most tests correctly. --- libs/rs/rsProgramRaster.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libs/rs/rsProgramRaster.cpp') diff --git a/libs/rs/rsProgramRaster.cpp b/libs/rs/rsProgramRaster.cpp index 51ae7cf61f16..f0039f75251b 100644 --- a/libs/rs/rsProgramRaster.cpp +++ b/libs/rs/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() -- cgit v1.2.3-59-g8ed1b