diff options
Diffstat (limited to 'graphics/java')
-rw-r--r-- | graphics/java/android/renderscript/Type.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/Type.java b/graphics/java/android/renderscript/Type.java index 9979e2a..b39d2e4 100644 --- a/graphics/java/android/renderscript/Type.java +++ b/graphics/java/android/renderscript/Type.java @@ -142,7 +142,8 @@ public class Type extends BaseObj { } int count = x * y * z * faces; - if (hasLod && (x > 1) && (y > 1) && (z > 1)) { + + while (hasLod && ((x > 1) || (y > 1) || (z > 1))) { if(x > 1) { x >>= 1; } |