summaryrefslogtreecommitdiffstats
path: root/src/demos/hdr
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/hdr')
-rwxr-xr-xsrc/demos/hdr/ARBFPPipeline.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/demos/hdr/ARBFPPipeline.java b/src/demos/hdr/ARBFPPipeline.java
index 0cc51f8..6d25fee 100755
--- a/src/demos/hdr/ARBFPPipeline.java
+++ b/src/demos/hdr/ARBFPPipeline.java
@@ -28,7 +28,10 @@ public class ARBFPPipeline implements Pipeline {
public void copyToTexture(GL gl, int textureObject, int w, int h) {
gl.glBindTexture(GL.GL_TEXTURE_RECTANGLE_NV, textureObject);
+ long start = System.currentTimeMillis();
gl.glCopyTexSubImage2D(GL.GL_TEXTURE_RECTANGLE_NV, 0, 0, 0, 0, 0, w, h);
+ long end = System.currentTimeMillis();
+ System.err.println("glCopyTexSubImage2D " + w + "x" + h + " took " + (end - start) + " ms");
}
public void bindTexture(GL gl, int textureObject) {