From 845878f2864d451e38f6e188d142580e69ad1f03 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 11 Jun 2009 07:50:34 +0000 Subject: Changes in respect to JOGL2 revision 1929 git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@342 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- src/demos/es1/RedSquare.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/demos/es1/RedSquare.java') diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java index eb36474..79a3c26 100755 --- a/src/demos/es1/RedSquare.java +++ b/src/demos/es1/RedSquare.java @@ -74,14 +74,9 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo int width = 800; int height = 480; glp = GLProfile.GetProfile(glprofile); - System.err.println(glp+" RedSquare.run()"); + System.err.println(glp+" RedSquare.init() 1"); try { GLCapabilities caps = new GLCapabilities(glp); - // For emulation library, use 16 bpp - caps.setRedBits(5); - caps.setGreenBits(6); - caps.setBlueBits(5); - caps.setDepthBits(16); Window nWindow = null; if(0!=(type&USE_AWT)) { @@ -103,6 +98,7 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo window.setSize(width, height); // window.setFullscreen(true); window.setVisible(true); + window.enablePerfLog(true); } catch (Throwable t) { t.printStackTrace(); } @@ -119,7 +115,7 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo } public void run() { - System.err.println(glp+" RedSquare.run()"); + System.err.println(glp+" RedSquare.run() 0"); try { do { window.display(); -- cgit v1.2.3