diff options
author | Kenneth Russel <[email protected]> | 2005-05-27 20:02:54 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-05-27 20:02:54 +0000 |
commit | 6c8b9ad75e49f597004371c0c1c11a7d6faf4a8e (patch) | |
tree | dd7e2ad9ced902fa9980375a2eb06d4adac42deb /src/demos/hdr | |
parent | 9d209d3b6ae12604e666d7b655bd1f19e70ee48b (diff) |
Fixed bug in floating-point pbuffer support on Linux and made HDR demo
better-behaved on Linux
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@81 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/hdr')
-rwxr-xr-x | src/demos/hdr/HDR.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/demos/hdr/HDR.java b/src/demos/hdr/HDR.java index 312741d..86a9bbe 100755 --- a/src/demos/hdr/HDR.java +++ b/src/demos/hdr/HDR.java @@ -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) {} |