diff options
Diffstat (limited to 'src/native')
-rwxr-xr-x | src/native/jogl/WindowsWindow.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/native/jogl/WindowsWindow.c b/src/native/jogl/WindowsWindow.c index 8742e5fbe..157615950 100755 --- a/src/native/jogl/WindowsWindow.c +++ b/src/native/jogl/WindowsWindow.c @@ -224,12 +224,14 @@ JNIEXPORT jlong JNICALL Java_com_sun_javafx_newt_windows_WindowsWindow_CreateWin * Signature: (J)V */ JNIEXPORT void JNICALL Java_com_sun_javafx_newt_windows_WindowsWindow_DispatchMessages - (JNIEnv *env, jclass clazz, jlong window) + (JNIEnv *_env, jclass clazz, jlong window) { int i = 0; MSG msg; BOOL gotOne; + env = _env; + // Periodically take a break do { gotOne = PeekMessage(&msg, (HWND) window, 0, 0, PM_REMOVE); @@ -239,6 +241,8 @@ JNIEXPORT void JNICALL Java_com_sun_javafx_newt_windows_WindowsWindow_DispatchMe DispatchMessage(&msg); } } while (gotOne && i < 100); + + env = NULL; } /* |