summaryrefslogtreecommitdiffstats
path: root/src/demos/es2/perftst/PerfUniLoad.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-03-29 15:38:31 +0200
committerMichael Bien <[email protected]>2010-03-29 15:38:31 +0200
commit0b708395a18eb6a2ae5372ff414bc75830ce19b6 (patch)
treef2cc555a6085f15972c319311dd01aa734b42b86 /src/demos/es2/perftst/PerfUniLoad.java
parent19528b880625ee830ab03cb2724311a874240fe8 (diff)
modifications due to refactorings in gluegen and jogl.
Diffstat (limited to 'src/demos/es2/perftst/PerfUniLoad.java')
-rwxr-xr-xsrc/demos/es2/perftst/PerfUniLoad.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demos/es2/perftst/PerfUniLoad.java b/src/demos/es2/perftst/PerfUniLoad.java
index 7cf32a2..170bf1a 100755
--- a/src/demos/es2/perftst/PerfUniLoad.java
+++ b/src/demos/es2/perftst/PerfUniLoad.java
@@ -1,5 +1,6 @@
package demos.es2.perftst;
+import com.jogamp.gluegen.runtime.Buffers;
import java.nio.*;
import javax.media.opengl.*;
import com.jogamp.opengl.util.*;
@@ -65,7 +66,7 @@ public class PerfUniLoad extends PerfModule {
float x=0f, y=0f, z=0f, w=0f;
for(int i=0; i<numObjs; i++) {
- FloatBuffer fb = BufferUtil.newFloatBuffer(4*numArrayElem);
+ FloatBuffer fb = Buffers.newDirectFloatBuffer(4*numArrayElem);
for(int j=0; j<numArrayElem; j++) {
// Fill them up
@@ -121,7 +122,7 @@ public class PerfUniLoad extends PerfModule {
}
int uniElements = numObjs * numArrayElem ;
- int uniBytes = uniElements * BufferUtil.SIZEOF_FLOAT;
+ int uniBytes = uniElements * Buffers.SIZEOF_FLOAT;
dt = 0;
for(int i=1; i<loops; i++) {