diff options
Diffstat (limited to 'src/demos')
-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) {} |