Fixed issue #243 about TextureArrays
This commit is contained in:
parent
39515c52c7
commit
080255f518
@ -2089,9 +2089,7 @@ public class GLRenderer implements Renderer {
|
|||||||
|
|
||||||
if (caps.contains(Caps.OpenGL30) || gl2 == null) {
|
if (caps.contains(Caps.OpenGL30) || gl2 == null) {
|
||||||
if (!img.hasMipmaps() && img.isGeneratedMipmapsRequired() && img.getData(0) != null) {
|
if (!img.hasMipmaps() && img.isGeneratedMipmapsRequired() && img.getData(0) != null) {
|
||||||
if (gl2 != null) gl2.glEnable(target); // XXX: Required for ATI
|
|
||||||
glfbo.glGenerateMipmapEXT(target);
|
glfbo.glGenerateMipmapEXT(target);
|
||||||
if (gl2 != null) gl2.glDisable(target);
|
|
||||||
img.setMipmapsGenerated(true);
|
img.setMipmapsGenerated(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user