summaryrefslogtreecommitdiffstats
path: root/src/demos/fullscreen
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/fullscreen')
-rwxr-xr-xsrc/demos/fullscreen/GearsFullscreen.java2
-rwxr-xr-xsrc/demos/fullscreen/GearsFullscreen2.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/demos/fullscreen/GearsFullscreen.java b/src/demos/fullscreen/GearsFullscreen.java
index c0a1345..3293250 100755
--- a/src/demos/fullscreen/GearsFullscreen.java
+++ b/src/demos/fullscreen/GearsFullscreen.java
@@ -52,7 +52,7 @@ public class GearsFullscreen {
if (newMode != null) {
frame.setUndecorated(true);
}
- final GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
+ final GLCanvas canvas = new GLCanvas();
canvas.addGLEventListener(new Gears());
canvas.addGLEventListener(new FullscreenWorkaround(initWidth, initHeight));
diff --git a/src/demos/fullscreen/GearsFullscreen2.java b/src/demos/fullscreen/GearsFullscreen2.java
index 1a5086c..902b3bc 100755
--- a/src/demos/fullscreen/GearsFullscreen2.java
+++ b/src/demos/fullscreen/GearsFullscreen2.java
@@ -53,7 +53,7 @@ public class GearsFullscreen2 {
if (newMode != null) {
frame.setUndecorated(true);
}
- GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
+ GLCanvas canvas = new GLCanvas();
canvas.addGLEventListener(new Gears());
canvas.addGLEventListener(new FullscreenWorkaround(initWidth, initHeight));