From fa6716877e682d868ed825a7d408c96d952bfff5 Mon Sep 17 00:00:00 2001 From: "iwg..ic" Date: Sun, 16 Sep 2012 20:58:09 +0000 Subject: [PATCH] Remove requirement for buffer type images to have width=height on Android devices that do not support NPOT. Now images allowed as long as both height and width are POT on devices that don't support NPOT. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9744 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/android/com/jme3/renderer/android/TextureUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/android/com/jme3/renderer/android/TextureUtil.java b/engine/src/android/com/jme3/renderer/android/TextureUtil.java index b94ab35b6..07d9d2cc3 100644 --- a/engine/src/android/com/jme3/renderer/android/TextureUtil.java +++ b/engine/src/android/com/jme3/renderer/android/TextureUtil.java @@ -253,7 +253,7 @@ public class TextureUtil { if (!NPOT) { // Check if texture is POT - if (!FastMath.isPowerOfTwo(width) || width != height) { + if (!FastMath.isPowerOfTwo(width) || !FastMath.isPowerOfTwo(height)) { throw new RendererException("Non-power-of-2 textures " + "are not supported by the video hardware " + "and no scaling path available for image: " + img);