Skip to content

Commit

Permalink
fix texture reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
NeusFear committed Feb 21, 2021
1 parent d6309f4 commit 2852244
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.terminalvelocitycabbage.engine.client.input.InputHandler;
import com.terminalvelocitycabbage.engine.client.input.KeyBind;
import com.terminalvelocitycabbage.engine.client.renderer.components.Window;
import com.terminalvelocitycabbage.engine.debug.Log;

import static org.lwjgl.glfw.GLFW.*;

Expand Down Expand Up @@ -44,8 +45,6 @@ public void init(Window window) {
@Override
public void processInput(KeyBind keyBind) {

reloadTexture = false;

//Escape closes the program by telling glfw that it should close
if (keyBind.equalsKeyAndAction(CLOSE)) {
setFocus(false);
Expand All @@ -55,6 +54,7 @@ public void processInput(KeyBind keyBind) {

if (keyBind.equalsKeyAndAction(RELOAD_TEXTURE)) {
reloadTexture = true;
Log.info("Reloading Texture...");
}

//Process movement inputs
Expand Down

0 comments on commit 2852244

Please sign in to comment.