TraxNet/ShadingZen — pull request #21 by MrSmith33 (2012-12-12 19:11:05+00:00)
Title: Fixed isPowerOfTwo in BitmapTexture.java

Fix for function ```isPowerOfTwo``` in ```core\BitmapTexture.java```

Testing example:

```
class Main {
static boolean isPowerOfTwo(int i){
return (2 * i == (i ^( i - 1) + 1));
}

//fixed version
static boolean isPowerOfTwo2(int i){
return ( i & (i - 1)) == 0;
}

public static void main(String[] args) {
System.out.println(isPowerOfTwo(8));
System.out.println(isPowerOfTwo2(8));
}
}
```

Output:
```
false
true
```