Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ea30a69 authored by Alex Sakhartchouk's avatar Alex Sakhartchouk
Browse files

Fixing element count bug in renderscript.

Change-Id: I0e795561db00e647d6dd5a9de7d25baf626d01a6
parent 0528bc77
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
            }