From 1481f8164304c47a5a9772b690cc21c514fedc35 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 22 Nov 2010 12:52:58 +0100 Subject: JOGL: Fix CreateDummyWindow usage, no more sync needed, since the Window class HINSTANCE is acquired at static initialization --- .../com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/jogl/classes/com/jogamp/opengl/impl') diff --git a/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java b/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java index 054c01fdb..e87d3cce2 100644 --- a/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java +++ b/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java @@ -55,11 +55,7 @@ public class WindowsDummyWGLDrawable extends WindowsWGLDrawable { protected WindowsDummyWGLDrawable(GLDrawableFactory factory, GLCapabilitiesImmutable caps) { super(factory, new ProxySurface(WindowsWGLGraphicsConfigurationFactory.createDefaultGraphicsConfiguration(caps, null)), true); - // All entries to CreateDummyWindow must synchronize on one object - // to avoid accidentally registering the dummy window class twice - synchronized (WindowsDummyWGLDrawable.class) { - hwnd = GDI.CreateDummyWindow(0, 0, 1, 1); - } + hwnd = GDI.CreateDummyWindow(0, 0, 1, 1); hdc = GDI.GetDC(hwnd); ProxySurface ns = (ProxySurface) getNativeSurface(); ns.setSurfaceHandle(hdc); -- cgit v1.2.3