diff options
author | Sven Gothel <[email protected]> | 2009-05-29 02:06:27 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-05-29 02:06:27 +0000 |
commit | 79466d482c8dd58907c9c414b851e4895c06d6cc (patch) | |
tree | c91b68d3482ce341e62182ae3d774fc236f50339 /src/demos/es2/perftst/Perftst.java | |
parent | 92bf955f17d1c070322ccf94d2de76d74f3eaa40 (diff) |
GLInfo gives some usefull info, fix with GL3 changes
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@336 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/es2/perftst/Perftst.java')
-rwxr-xr-x | src/demos/es2/perftst/Perftst.java | 7 |
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); |