diff options
author | Sven Gothel <[email protected]> | 2012-03-05 06:48:38 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-03-05 06:48:38 +0100 |
commit | b67a89a364677732d0849780226972d7e40aa078 (patch) | |
tree | 8c1dc0c4237440829bd9a760ccffdbf213d22622 /src/newt | |
parent | 90c46b1ef1f199ceb63e85c85e9ebeb919d49c4a (diff) |
Fix GLWindow/SWT-GLCanvas: set context synchronized ; Misc Changes
Fix GLWindow/SWT-GLCanvas: set context synchronized
- GLWindow fix commit a0177c8a1048683e5d43f4712f8f9e37091d4e85.
Removed explicit recursive surface lock requires
recursive context locking, otherwise concurrent rendering fails.
The implicit recursive surface lock within context makeCurrent()
is applied after the context lock itself.
Misc Changes
- Fix TestPBufferDeadlockAWT, which was not using the unique profile string reference
Diffstat (limited to 'src/newt')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/opengl/GLWindow.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java index 156e479fd..419ce7f7f 100644 --- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java +++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java @@ -421,6 +421,7 @@ public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer, FPSC } drawable.setRealized(true); context = drawable.createContext(sharedContext); + context.setSynchronized(true); context.setContextCreationFlags(additionalCtxCreationFlags); } if(Window.DEBUG_IMPLEMENTATION) { |