GLRenderer: put max anisotropy into limits map

experimental
Kirill Vainer 9 years ago
parent d269839efb
commit efe600c38d
  1. 2
      jme3-core/src/main/java/com/jme3/renderer/Limits.java
  2. 1
      jme3-core/src/main/java/com/jme3/renderer/opengl/GLExt.java
  3. 1
      jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java

@ -77,4 +77,6 @@ public enum Limits {
DepthTextureSamples,
VertexUniformVectors,
TextureAnisotropy,
}

@ -68,6 +68,7 @@ public interface GLExt {
public static final int GL_MAX_DEPTH_TEXTURE_SAMPLES = 0x910F;
public static final int GL_MAX_DRAW_BUFFERS_ARB = 0x8824;
public static final int GL_MAX_SAMPLES_EXT = 0x8D57;
public static final int GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
public static final int GL_MULTISAMPLE_ARB = 0x809D;
public static final int GL_NUM_PROGRAM_BINARY_FORMATS = 0x87FE;
public static final int GL_PIXEL_PACK_BUFFER_ARB = 0x88EB;

@ -374,6 +374,7 @@ public class GLRenderer implements Renderer {
if (hasExtension("GL_EXT_texture_filter_anisotropic")) {
caps.add(Caps.TextureFilterAnisotropic);
limits.put(Limits.TextureAnisotropy, getInteger(GLExt.GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT));
}
if (hasExtension("GL_EXT_framebuffer_object")

Loading…
Cancel
Save