summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-22 12:52:58 +0100
committerSven Gothel <[email protected]>2010-11-22 12:52:58 +0100
commit1481f8164304c47a5a9772b690cc21c514fedc35 (patch)
tree1c3cf8990e4aa8abd5a92ab27e2039f5612273dc /src/jogl/classes
parenta3f593158b25f78027504129c343b9aab433183d (diff)
JOGL: Fix CreateDummyWindow usage, no more sync needed, since the Window class HINSTANCE is acquired at static initialization
Diffstat (limited to 'src/jogl/classes')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java6
1 files changed, 1 insertions, 5 deletions
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);