diff options
author | First Last <[email protected]> | 2005-06-16 23:02:03 +0000 |
---|---|---|
committer | First Last <[email protected]> | 2005-06-16 23:02:03 +0000 |
commit | 9d278dff86c07218ff2616745381ccc2689f8ea5 (patch) | |
tree | 46e3493919362a74f1d2e03e2622127eed0b9856 /src/demos/hdr | |
parent | 9d209d3b6ae12604e666d7b655bd1f19e70ee48b (diff) |
This commit was manufactured by cvs2svn to create branch 'JSR-231'.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JSR-231@93 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/hdr')
-rwxr-xr-x | src/demos/hdr/HDR.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/demos/hdr/HDR.java b/src/demos/hdr/HDR.java index 312741d..2e650fc 100755 --- a/src/demos/hdr/HDR.java +++ b/src/demos/hdr/HDR.java @@ -176,11 +176,11 @@ public class HDR { frame = new Frame("HDR test"); frame.setLayout(new BorderLayout()); - frame.setResizable(false); canvas.setSize(win_w, win_h); frame.add(canvas, BorderLayout.CENTER); frame.pack(); + frame.setResizable(false); frame.show(); canvas.requestFocus(); @@ -353,6 +353,9 @@ public class HDR { } drawQuadRect4(gl, win_w, win_h, pbuffer_w, pbuffer_h); gl.glDisable(GL.GL_TEXTURE_RECTANGLE_NV); + + // Try to avoid swamping the CPU on Linux + Thread.yield(); } public void reshape(GLDrawable drawable, int x, int y, int width, int height) {} |