diff --git a/src/native/macosx/org_lwjgl_opengl_Window.cpp b/src/native/macosx/org_lwjgl_opengl_Window.cpp index da7370bf..705cf54e 100644 --- a/src/native/macosx/org_lwjgl_opengl_Window.cpp +++ b/src/native/macosx/org_lwjgl_opengl_Window.cpp @@ -51,7 +51,7 @@ static bool vsync_enabled; static bool current_fullscreen; static void destroyMode(JNIEnv *env, jclass clazz) { - if (!current_fullscreen); + if (!current_fullscreen) resetMode(env); }