summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/demos/hdr/HDR.java3
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) {}