From 6c8b9ad75e49f597004371c0c1c11a7d6faf4a8e Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 27 May 2005 20:02:54 +0000 Subject: 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 --- src/demos/hdr/HDR.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/demos/hdr') 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) {} -- cgit v1.2.3