From eb41f38a9c5f949378f4cabf9973cfba619becf6 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Wed, 7 Jul 2021 15:39:38 +0700 Subject: [PATCH] Update GLFW.java --- jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java b/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java index ff2bdfbc3..5e75986ff 100644 --- a/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java +++ b/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java @@ -960,11 +960,8 @@ public class GLFW } public static void glfwMakeContextCurrent(long window) { - //Probably not the best idea to rely on program's internals to share the contexts... - try{ - throw new Exception("Trace exception"); - }catch(Exception e) { - e.printStackTrace(); + //Probably not the best idea to rely on program's internals to share the contexts + new Exception("Trace exception").printStackTrace(); } nativeEglMakeCurrent(window); System.out.println(Long.toString(nativeEglGetCurrentContext(),16));