Fixed issue #243 about TextureArrays

This commit is contained in:
Nehon 2015-03-18 22:30:07 +01:00
parent 39515c52c7
commit 080255f518

View File

@ -2089,9 +2089,7 @@ public class GLRenderer implements Renderer {
if (caps.contains(Caps.OpenGL30) || gl2 == null) {
if (!img.hasMipmaps() && img.isGeneratedMipmapsRequired() && img.getData(0) != null) {
if (gl2 != null) gl2.glEnable(target); // XXX: Required for ATI
glfbo.glGenerateMipmapEXT(target);
if (gl2 != null) gl2.glDisable(target);
img.setMipmapsGenerated(true);
}
}