From 0cb4baed987223893d7f68e5f5cbb96987a39cf6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 24 Jun 2013 19:28:05 +0200 Subject: NEWT Windows WindowDriver: Suppress LOCK_SURFACE_CHANGED, no semantics in GLDrawable on Windows. FIXME: Validate against EGL surface creation: ANGLE uses HWND -> fine! --- src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/newt/classes') diff --git a/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java b/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java index 60fc3ec0f..7a8e683af 100644 --- a/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java +++ b/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java @@ -79,6 +79,11 @@ public class WindowDriver extends WindowImpl { } hmon = MonitorFromWindow0(hWnd); + // Let's not trigger on HDC change, GLDrawableImpl.'s destroy/create is a nop here anyways. + // FIXME: Validate against EGL surface creation: ANGLE uses HWND -> fine! + return LOCK_SUCCESS; + + /** if( hdc_old == hdc ) { return LOCK_SUCCESS; } @@ -86,7 +91,7 @@ public class WindowDriver extends WindowImpl { System.err.println("WindowsWindow: surface change "+toHexString(hdc_old)+" -> "+toHexString(hdc)); // Thread.dumpStack(); } - return LOCK_SURFACE_CHANGED; + return LOCK_SURFACE_CHANGED; */ } @Override -- cgit v1.2.3