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 | 900f1616bf33c7ba13cf2a737832a95bcd176388 (patch) | |
tree | 464dfe773903a900e4ffcbcd81f55491c8b12c7e /rsProgramStore.cpp | |
parent | 4c5f99e3d27a0487878435010a23f37b2e9d721b (diff) | |
download | rs-900f1616bf33c7ba13cf2a737832a95bcd176388.tar.gz |
Cleanup GL setup code and remove legacy 1.1 paths.
Reset pointers to NULL when allocations are unbound.
Change-Id: Ifaba634ecbb154970b7fb47faa8e6475d16d2f66
Diffstat (limited to 'rsProgramStore.cpp')
-rw-r--r-- | rsProgramStore.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/rsProgramStore.cpp b/rsProgramStore.cpp index e741c0a5..3f90d7ac 100644 --- a/rsProgramStore.cpp +++ b/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) { |