summaryrefslogtreecommitdiffstats
path: root/src/demos/es2/perftst/Perftst.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/es2/perftst/Perftst.java')
-rwxr-xr-xsrc/demos/es2/perftst/Perftst.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/demos/es2/perftst/Perftst.java b/src/demos/es2/perftst/Perftst.java
index ba47029..e6fa822 100755
--- a/src/demos/es2/perftst/Perftst.java
+++ b/src/demos/es2/perftst/Perftst.java
@@ -2,6 +2,7 @@ package demos.es2.perftst;
import java.nio.*;
import javax.media.opengl.*;
+import javax.media.nativewindow.*;
import com.sun.opengl.util.*;
import com.sun.opengl.util.glsl.*;
@@ -53,9 +54,9 @@ public class Perftst implements MouseListener, GLEventListener {
Window nWindow = null;
if(0!=(type&USE_AWT)) {
- Display nDisplay = NewtFactory.createDisplay(NewtFactory.AWT, null); // local display
- Screen nScreen = NewtFactory.createScreen(NewtFactory.AWT, nDisplay, 0); // screen 0
- nWindow = NewtFactory.createWindow(NewtFactory.AWT, nScreen, caps);
+ Display nDisplay = NewtFactory.createDisplay(NativeWindowFactory.TYPE_AWT, null); // local display
+ Screen nScreen = NewtFactory.createScreen(NativeWindowFactory.TYPE_AWT, nDisplay, 0); // screen 0
+ nWindow = NewtFactory.createWindow(NativeWindowFactory.TYPE_AWT, nScreen, caps);
}
window = GLWindow.create(nWindow, caps);