diff options
author | Sven Gothel <[email protected]> | 2013-06-24 19:28:05 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-06-24 19:28:05 +0200 |
commit | 0cb4baed987223893d7f68e5f5cbb96987a39cf6 (patch) | |
tree | 3626543059540aef7a9a234f20be234c32a05a1f | |
parent | 01d2f02624e6e6c6877fbf3eb5b830f49c3e06af (diff) |
NEWT Windows WindowDriver: Suppress LOCK_SURFACE_CHANGED, no semantics in GLDrawable on Windows.
FIXME: Validate against EGL surface creation: ANGLE uses HWND -> fine!
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java | 7 |
1 files changed, 6 insertions, 1 deletions
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 |