summaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/windows
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2004-11-15 20:21:06 +0000
committerKenneth Russel <[email protected]>2004-11-15 20:21:06 +0000
commit70c096c01fb666844adbd488e3309830ddd0ba1a (patch)
tree213b610dd64af7c9ec2a8247a0a7cd024f9384fd /src/net/java/games/jogl/impl/windows
parent38a01ec6fd4ed9e7326cc4fd18e6b7f72856094e (diff)
Fixed Issue 119: Dual-head problems on Windows XP
Added needed synchronization around creation of dummy windows for wglChoosePixelFormatARB calls. Fixed race condition in StaticGLInfo initialization. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@170 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl/impl/windows')
-rw-r--r--src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java b/src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java
index a4f588158..726091bf1 100644
--- a/src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java
+++ b/src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java
@@ -263,7 +263,9 @@ public class WindowsGLContextFactory extends GLContextFactory {
public void run() {
// Create a native window and device context
- HWND = WGL.CreateDummyWindow( rectangle.x, rectangle.y, rectangle.width, rectangle.height );
+ synchronized (WindowsGLContextFactory.class) {
+ HWND = WGL.CreateDummyWindow( rectangle.x, rectangle.y, rectangle.width, rectangle.height );
+ }
HDC = WGL.GetDC( HWND );
// Start the message pump at shutdown