From a157e83815521728db6fb0de405f2b00a9028bdf Mon Sep 17 00:00:00 2001 From: shadowislord Date: Wed, 18 Mar 2015 23:21:25 -0400 Subject: [PATCH] GLRenderer: always use glGenerateMipmap if we have FBO support --- .../src/main/java/com/jme3/renderer/opengl/GLRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java index 4e20c5de0..9d080384a 100644 --- a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java +++ b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java @@ -1994,7 +1994,7 @@ public class GLRenderer implements Renderer { // Image does not have mipmaps, but they are required. // Generate from base level. - if (!caps.contains(Caps.OpenGL30) && gl2 != null) { + if (!caps.contains(Caps.FrameBuffer) && gl2 != null) { gl2.glTexParameteri(target, GL2.GL_GENERATE_MIPMAP, GL.GL_TRUE); img.setMipmapsGenerated(true); } else { @@ -2081,7 +2081,7 @@ public class GLRenderer implements Renderer { img.setMultiSamples(imageSamples); } - if (caps.contains(Caps.OpenGL30) || gl2 == null) { + if (caps.contains(Caps.FrameBuffer) || gl2 == null) { if (!img.hasMipmaps() && img.isGeneratedMipmapsRequired() && img.getData(0) != null) { glfbo.glGenerateMipmapEXT(target); img.setMipmapsGenerated(true);