diff options
author | Jason Sams <rjsams@android.com> | 2009-08-25 11:34:49 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-08-25 11:44:30 -0700 |
commit | b13ada5071f55c96054c47bbd88d8801cd2c0f15 (patch) | |
tree | 652b6ca78a53aafaa7c6c3ceb7229a3d6aab43db /libs/rs/rsProgramFragment.cpp | |
parent | dbade9d6a075b1d5b8ebe10ee8961a5de296c93b (diff) |
Add support for selecting the color bit depth and if the application used a depth buffer.
Diffstat (limited to 'libs/rs/rsProgramFragment.cpp')
-rw-r--r-- | libs/rs/rsProgramFragment.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/rs/rsProgramFragment.cpp b/libs/rs/rsProgramFragment.cpp index 4ef6835271ba..654974fe3621 100644 --- a/libs/rs/rsProgramFragment.cpp +++ b/libs/rs/rsProgramFragment.cpp @@ -40,7 +40,7 @@ ProgramFragment::~ProgramFragment() { } -void ProgramFragment::setupGL(ProgramFragmentState *state) +void ProgramFragment::setupGL(const Context *rsc, ProgramFragmentState *state) { if ((state->mLast.get() == this) && !mDirty) { return; @@ -55,7 +55,9 @@ void ProgramFragment::setupGL(ProgramFragmentState *state) } glEnable(GL_TEXTURE_2D); - //glTexEnvi(GL_POINT_SPRITE_OES, GL_COORD_REPLACE_OES, mPointSpriteEnable); + if (rsc->checkVersion1_1()) { + glTexEnvi(GL_POINT_SPRITE_OES, GL_COORD_REPLACE_OES, mPointSpriteEnable); + } glBindTexture(GL_TEXTURE_2D, mTextures[ct]->getTextureID()); switch(mEnvModes[ct]) { |