From ad0eb54fa214b537ac52ea15c6563ba5a3720d1a Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 26 Apr 2004 16:20:26 +0000 Subject: Fixed Issue 77: Creation of dummy GL context fails in some configurations Applied patch from Yuri Vl. Gushchin to disable auto-redraw and auto-swap buffer modes on dummy GLCanvas. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@125 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java b/src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java index d0d270e42..961a116d8 100644 --- a/src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java +++ b/src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java @@ -137,6 +137,8 @@ public class WindowsGLContextFactory extends GLContextFactory { } }); canvas.setSize(0, 0); + canvas.setNoAutoRedrawMode(true); + canvas.setAutoSwapBufferMode(false); frame.add(canvas); frame.pack(); frame.show(); -- cgit v1.2.3