From 0038e2d41825c22bdd18a7b86a8229a3fab674a3 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 6 Nov 2011 07:36:35 +0100 Subject: JOGL *Drawable swapBufferImpl() cleanup: Don't force swap-buffer off for offscreen/pbuffer, but respect GLDrawableImpl's decision (double-buffer) --- .../jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java') diff --git a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java index cd22127a3..2c9d72fb3 100644 --- a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java +++ b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java @@ -442,7 +442,7 @@ public class WindowsWGLDrawableFactory extends GLDrawableFactoryImpl { if(null==sr) { throw new IllegalArgumentException("No shared resource for "+device); } - final List returnList = new ArrayList(); + final List returnList = new ArrayList(); Runnable r = new Runnable() { public void run() { GLContext lastContext = GLContext.getCurrent(); @@ -451,7 +451,7 @@ public class WindowsWGLDrawableFactory extends GLDrawableFactoryImpl { } sr.context.makeCurrent(); try { - GLDrawableImpl pbufferDrawable = new WindowsPbufferWGLDrawable(WindowsWGLDrawableFactory.this, target, sr); + GLDrawableImpl pbufferDrawable = new WindowsPbufferWGLDrawable(WindowsWGLDrawableFactory.this, target); returnList.add(pbufferDrawable); } finally { sr.context.release(); @@ -462,7 +462,7 @@ public class WindowsWGLDrawableFactory extends GLDrawableFactoryImpl { } }; maybeDoSingleThreadedWorkaround(r); - return (GLDrawableImpl) returnList.get(0); + return returnList.get(0); } /** -- cgit v1.2.3