summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2010-10-13 14:22:02 -0700
committerAlex Sakhartchouk <alexst@google.com>2010-10-13 14:33:44 -0700
commit9e401bcd88a0fdeea96f53cb776e5de7b5b084cb (patch)
treed2c32d8fdcf107f30e97c4dc880d46a30a8f31ed /graphics
parent79c92540877d6683290511617aac8e3108b68ad1 (diff)
downloadframeworks_base-9e401bcd88a0fdeea96f53cb776e5de7b5b084cb.zip
frameworks_base-9e401bcd88a0fdeea96f53cb776e5de7b5b084cb.tar.gz
frameworks_base-9e401bcd88a0fdeea96f53cb776e5de7b5b084cb.tar.bz2
Changing scenegraph sample to use arrays.
Change-Id: Ifa454d503c1445efcad6e31243b65d75e62e3035
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/renderscript/Element.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/Element.java b/graphics/java/android/renderscript/Element.java
index dc421d8..d013886 100644
--- a/graphics/java/android/renderscript/Element.java
+++ b/graphics/java/android/renderscript/Element.java
@@ -342,7 +342,7 @@ public class Element extends BaseObj {
mElementNames = n;
mArraySizes = as;
for (int ct = 0; ct < mElements.length; ct++ ) {
- mSize += mElements[ct].mSize;
+ mSize += mElements[ct].mSize * mArraySizes[ct];
}
}