summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/demos/es2/perftst/PerfUniLoad.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/demos/es2/perftst/PerfUniLoad.java b/src/demos/es2/perftst/PerfUniLoad.java
index d3174e2..3b27673 100755
--- a/src/demos/es2/perftst/PerfUniLoad.java
+++ b/src/demos/es2/perftst/PerfUniLoad.java
@@ -68,7 +68,6 @@ public class PerfUniLoad extends PerfModule {
for(int i=0; i<numObjs; i++) {
FloatBuffer fb = BufferUtil.newFloatBuffer(4*numArrayElem);
- dummyUni[i] = new GLUniformData("mgl_Dummy"+i, 4, fb);
for(int j=0; j<numArrayElem; j++) {
// Fill them up
@@ -81,6 +80,8 @@ public class PerfUniLoad extends PerfModule {
if(y>1f) { x=0f; y=0f; z+=0.01f; }
}
fb.flip();
+
+ dummyUni[i] = new GLUniformData("mgl_Dummy"+i, 4, fb);
}
//