diff options
author | Jason Sams <rjsams@android.com> | 2010-09-16 18:18:29 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-09-16 18:18:29 -0700 |
commit | d081fffab58b4cb8a36b7a083ab7793585bc1510 (patch) | |
tree | 2d4ea330edfd21499546fc0a9ae9d647d7a1ee0e /libs/rs/rsProgramStore.cpp | |
parent | a8bf9429b29743b3489817feb21bde2416acc465 (diff) |
Cleanup GL setup code and remove legacy 1.1 paths.
Reset pointers to NULL when allocations are unbound.
Change-Id: Ifaba634ecbb154970b7fb47faa8e6475d16d2f66
Diffstat (limited to 'libs/rs/rsProgramStore.cpp')
-rw-r--r-- | libs/rs/rsProgramStore.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/libs/rs/rsProgramStore.cpp b/libs/rs/rsProgramStore.cpp index e741c0a5a484..3f90d7ac88dc 100644 --- a/libs/rs/rsProgramStore.cpp +++ b/libs/rs/rsProgramStore.cpp @@ -56,41 +56,6 @@ ProgramStore::~ProgramStore() { } -void ProgramStore::setupGL(const Context *rsc, ProgramStoreState *state) -{ - if (state->mLast.get() == this) { - return; - } - state->mLast.set(this); - - glColorMask(mColorRWriteEnable, - mColorGWriteEnable, - mColorBWriteEnable, - mColorAWriteEnable); - if (mBlendEnable) { - glEnable(GL_BLEND); - glBlendFunc(mBlendSrc, mBlendDst); - } else { - glDisable(GL_BLEND); - } - - //LOGE("pfs %i, %i, %x", mDepthWriteEnable, mDepthTestEnable, mDepthFunc); - - glDepthMask(mDepthWriteEnable); - if(mDepthTestEnable || mDepthWriteEnable) { - glEnable(GL_DEPTH_TEST); - glDepthFunc(mDepthFunc); - } else { - glDisable(GL_DEPTH_TEST); - } - - if (mDitherEnable) { - glEnable(GL_DITHER); - } else { - glDisable(GL_DITHER); - } -} - void ProgramStore::setupGL2(const Context *rsc, ProgramStoreState *state) { if (state->mLast.get() == this) { |