summaryrefslogtreecommitdiffstats
path: root/src/demos/es1/RedSquare.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-06-11 07:50:34 +0000
committerSven Gothel <[email protected]>2009-06-11 07:50:34 +0000
commit845878f2864d451e38f6e188d142580e69ad1f03 (patch)
tree60affc91133f90b41754245b9249b66257600325 /src/demos/es1/RedSquare.java
parent3d95fab3cd7be5b260afa2be371b0ac7b4866790 (diff)
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
Diffstat (limited to 'src/demos/es1/RedSquare.java')
-rwxr-xr-xsrc/demos/es1/RedSquare.java10
1 files changed, 3 insertions, 7 deletions
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();