summaryrefslogtreecommitdiff
path: root/libs/rs/rsProgramFragmentStore.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2009-07-15 18:35:54 -0700
committerJason Sams <rjsams@android.com>2009-07-16 12:55:18 -0700
commitc75a257c02ecaa1f1a476e233c0d79cd39dbe5d8 (patch)
treeb1c16432d0b59a86c2cb0c0cdfd268ae719df16a /libs/rs/rsProgramFragmentStore.cpp
parent0c421c0d2747225f49efa547b9ceedace69005f1 (diff)
Update rollo with new interactivity model.
Diffstat (limited to 'libs/rs/rsProgramFragmentStore.cpp')
-rw-r--r--libs/rs/rsProgramFragmentStore.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/rs/rsProgramFragmentStore.cpp b/libs/rs/rsProgramFragmentStore.cpp
index 0b6568036bb5..9ee270f2226e 100644
--- a/libs/rs/rsProgramFragmentStore.cpp
+++ b/libs/rs/rsProgramFragmentStore.cpp
@@ -61,8 +61,10 @@ void ProgramFragmentStore::setupGL()
glDisable(GL_BLEND);
}
+ //LOGE("pfs %i, %i, %x", mDepthWriteEnable, mDepthTestEnable, mDepthFunc);
+
glDepthMask(mDepthWriteEnable);
- if(mDepthTestEnable) {
+ if(mDepthTestEnable || mDepthWriteEnable) {
glEnable(GL_DEPTH_TEST);
glDepthFunc(mDepthFunc);
} else {