* Call timer.reset() when gaining focus to fix "object speedup after alt-tab" issue

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7264 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 14 years ago
parent 190767e7be
commit 8fb97f1a3a
  1. 1
      engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java

@ -194,6 +194,7 @@ public abstract class LwjglAbstractDisplay extends LwjglContext implements Runna
if (wasActive != Display.isActive()) { if (wasActive != Display.isActive()) {
if (!wasActive) { if (!wasActive) {
listener.gainFocus(); listener.gainFocus();
timer.reset();
wasActive = true; wasActive = true;
} else { } else {
listener.loseFocus(); listener.loseFocus();

Loading…
Cancel
Save