summaryrefslogtreecommitdiffstats
path: root/test/com/jogamp/opencl/HighLevelBindingTest.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-02-13 13:57:31 +0100
committerMichael Bien <[email protected]>2011-02-13 13:57:31 +0100
commite4f978fef8c2805413190f356f9101f6cd3a56cc (patch)
tree3419bbe81a1b51f3653383094c53918779ef5fd4 /test/com/jogamp/opencl/HighLevelBindingTest.java
parent8cc4dacf765452fb10c3f16076b26955994f2b80 (diff)
fixed compiler redundant-casts warnings due to language level changes in gluegen-rt.
Diffstat (limited to 'test/com/jogamp/opencl/HighLevelBindingTest.java')
-rw-r--r--test/com/jogamp/opencl/HighLevelBindingTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/com/jogamp/opencl/HighLevelBindingTest.java b/test/com/jogamp/opencl/HighLevelBindingTest.java
index 6b66e762..749db3a6 100644
--- a/test/com/jogamp/opencl/HighLevelBindingTest.java
+++ b/test/com/jogamp/opencl/HighLevelBindingTest.java
@@ -40,6 +40,7 @@ import com.jogamp.opencl.CLDevice.LocalMemType;
import com.jogamp.opencl.CLDevice.Type;
import com.jogamp.opencl.CLDevice.Capabilities;
import java.io.IOException;
+import java.io.InputStream;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.EnumSet;
@@ -285,7 +286,8 @@ public class HighLevelBindingTest {
out.println("max FLOPS device: " + context.getMaxFlopsDevice());
- CLProgram program = context.createProgram(getClass().getResourceAsStream("testkernels.cl")).build();
+ InputStream stream = getClass().getResourceAsStream("testkernels.cl");
+ CLProgram program = context.createProgram(stream).build();
CLDevice[] programDevices = program.getCLDevices();
CLDevice device = programDevices[0];