* Display LWJGL version when context is created (why was this part removed?)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10655 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..RD 12 years ago
parent f3c53cf916
commit 7c983e1a3b
  1. 6
      engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java

@ -48,6 +48,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
import java.util.logging.Level; import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
import org.lwjgl.LWJGLException; import org.lwjgl.LWJGLException;
import org.lwjgl.Sys;
import org.lwjgl.opengl.*; import org.lwjgl.opengl.*;
/** /**
@ -73,8 +74,9 @@ public abstract class LwjglContext implements JmeContext {
this.listener = listener; this.listener = listener;
} }
protected void printContextInitInfo(){ protected void printContextInitInfo() {
logger.log(Level.INFO, "Lwjgl context running on thread {0}", Thread.currentThread().getName()); logger.log(Level.INFO, "Lwjgl {0} context running on thread {1}",
new Object[]{Sys.getVersion(), Thread.currentThread().getName()});
logger.log(Level.INFO, "Adapter: {0}", Display.getAdapter()); logger.log(Level.INFO, "Adapter: {0}", Display.getAdapter());
logger.log(Level.INFO, "Driver Version: {0}", Display.getVersion()); logger.log(Level.INFO, "Driver Version: {0}", Display.getVersion());

Loading…
Cancel
Save