aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/windows
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2004-04-26 16:20:26 +0000
committerKenneth Russel <[email protected]>2004-04-26 16:20:26 +0000
commitad0eb54fa214b537ac52ea15c6563ba5a3720d1a (patch)
tree8d5865c977c97c1d2f062a21d4edbef03405ab0f /src/net/java/games/jogl/impl/windows
parent39a94cbfc2254956cca59bbc5c13102f11ad3a2c (diff)
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
Diffstat (limited to 'src/net/java/games/jogl/impl/windows')
-rw-r--r--src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java2
1 files changed, 2 insertions, 0 deletions
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();