diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/util/texture/TestPNGImage01NEWT.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/util/texture/TestPNGImage01NEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/util/texture/TestPNGImage01NEWT.java index 7b53d973c..81f64f0ae 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/util/texture/TestPNGImage01NEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/util/texture/TestPNGImage01NEWT.java @@ -26,7 +26,7 @@ public class TestPNGImage01NEWT extends UITestCase { System.err.println("PNGImage - Orig: "+image1); image1.write(out1_f, true); { - Assert.assertEquals(image1.getData(), PNGImage.read(IOUtil.toURL(out1_f).openStream()).getData()); + Assert.assertEquals(image1.getData(), PNGImage.read(out1_f.toURI().toURL().openStream()).getData()); } final PNGImage image2 = PNGImage.createFromData(image1.getWidth(), image1.getHeight(), @@ -34,7 +34,7 @@ public class TestPNGImage01NEWT extends UITestCase { image1.getBytesPerPixel(), false /* reverseChannels */, image1.isGLOriented(), image1.getData()); image2.write(out2_f, true); { - Assert.assertEquals(image1.getData(), PNGImage.read(IOUtil.toURL(out2_f).openStream()).getData()); + Assert.assertEquals(image1.getData(), PNGImage.read(out2_f.toURI().toURL().openStream()).getData()); } // flipped |