GLRenderer: log texture formats as Level.FINE

experimental
shadowislord 10 years ago
parent 963c3d7e61
commit bbbfdb851a
  1. 6
      jme3-core/src/main/java/com/jme3/renderer/opengl/TextureUtil.java

@ -65,8 +65,9 @@ final class TextureUtil {
} }
public void initialize(EnumSet<Caps> caps) { public void initialize(EnumSet<Caps> caps) {
StringBuilder sb = new StringBuilder();
this.formats = GLImageFormats.getFormatsForCaps(caps); this.formats = GLImageFormats.getFormatsForCaps(caps);
if (logger.isLoggable(Level.FINE)) {
StringBuilder sb = new StringBuilder();
sb.append("Supported texture formats: \n"); sb.append("Supported texture formats: \n");
for (int i = 0; i < Format.values().length; i++) { for (int i = 0; i < Format.values().length; i++) {
Format format = Format.values()[i]; Format format = Format.values()[i];
@ -78,7 +79,8 @@ final class TextureUtil {
sb.append(")\n"); sb.append(")\n");
} }
} }
logger.log(Level.INFO, sb.toString()); logger.log(Level.FINE, sb.toString());
}
} }
public GLImageFormat getImageFormat(Format fmt, boolean isSrgb) { public GLImageFormat getImageFormat(Format fmt, boolean isSrgb) {

Loading…
Cancel
Save