summaryrefslogtreecommitdiff
path: root/tests/RenderScriptTests
diff options
context:
space:
mode:
author Alex Sakhartchouk <alexst@google.com> 2011-12-16 09:51:53 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2011-12-16 09:51:53 -0800
commit8d57f404fa2bfbc1cc4427c754bca5a3bee0fc47 (patch)
tree72c95f282b38c99af7d6ad8efc6f6c9fda0af029 /tests/RenderScriptTests
parent00bb647145830f2c973151ffc1e5dabd6a0ec43a (diff)
parentf5d8ac7cc35747ef7285ccc196f616b96229def9 (diff)
Merge "Element getters." into graphics-dev
Diffstat (limited to 'tests/RenderScriptTests')
-rw-r--r--tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/render.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/render.rs b/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/render.rs
index 4b85d726b804..8187fbcb474d 100644
--- a/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/render.rs
+++ b/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/render.rs
@@ -150,8 +150,14 @@ static void sortToBucket(SgRenderable *obj) {
}
const SgRenderState *renderState = (const SgRenderState *)rsGetElementAt(obj->render_state, 0);
if (rsIsObject(renderState->ps)) {
- if ((rsgProgramStoreGetBlendSrcFunc(renderState->ps) == RS_BLEND_SRC_ONE) &&
- (rsgProgramStoreGetBlendDstFunc(renderState->ps) == RS_BLEND_DST_ZERO)) {
+#define MR1_API
+#ifndef MR1_API
+ bool isOpaque = (rsgProgramStoreGetBlendSrcFunc(renderState->ps) == RS_BLEND_SRC_ONE) &&
+ (rsgProgramStoreGetBlendDstFunc(renderState->ps) == RS_BLEND_DST_ZERO);
+#else
+ bool isOpaque = false;
+#endif
+ if (isOpaque) {
gFrontToBack[gFrontToBackCount++] = (uint32_t)obj;
} else {
gBackToFront[gBackToFrontCount++] = (uint32_t)obj;