diff options
Diffstat (limited to 'test/com/jogamp/opencl/gl/CLGLTest.java')
-rw-r--r-- | test/com/jogamp/opencl/gl/CLGLTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/com/jogamp/opencl/gl/CLGLTest.java b/test/com/jogamp/opencl/gl/CLGLTest.java index 52f0e574..b5d85690 100644 --- a/test/com/jogamp/opencl/gl/CLGLTest.java +++ b/test/com/jogamp/opencl/gl/CLGLTest.java @@ -113,7 +113,9 @@ public class CLGLTest extends UITestCase { initGL(); + @SuppressWarnings("unchecked") CLPlatform platform = CLPlatform.getDefault(CLPlatformFilters.glSharing()); + @SuppressWarnings("unchecked") CLDevice device = platform.getMaxFlopsDevice(CLDeviceFilters.glSharing()); if(device == null) { @@ -159,12 +161,14 @@ public class CLGLTest extends UITestCase { makeGLCurrent(); assertTrue(glcontext.isCurrent()); + @SuppressWarnings("unchecked") CLPlatform platform = CLPlatform.getDefault(glSharing(glcontext)); if(platform == null) { out.println("test aborted"); return; } + @SuppressWarnings("unchecked") CLDevice theChosenOne = platform.getMaxFlopsDevice(CLDeviceFilters.glSharing()); out.println(theChosenOne); |