* Fix issue 391

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9447 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..rd 13 years ago
parent e574e73b68
commit 1ef93999a3
  1. 2
      engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglRenderer.java

@ -1846,7 +1846,7 @@ public class LwjglRenderer implements Renderer {
} else {
// glTexParameteri(target, GL_TEXTURE_BASE_LEVEL, 0 );
if (img.getMipMapSizes() != null) {
glTexParameteri(target, GL_TEXTURE_MAX_LEVEL, img.getMipMapSizes().length);
glTexParameteri(target, GL_TEXTURE_MAX_LEVEL, img.getMipMapSizes().length - 1);
}
}

Loading…
Cancel
Save