diff options
Diffstat (limited to 'src/demos/dualDepthPeeling/Model.java')
-rw-r--r-- | src/demos/dualDepthPeeling/Model.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/demos/dualDepthPeeling/Model.java b/src/demos/dualDepthPeeling/Model.java index 02f241c..3502879 100644 --- a/src/demos/dualDepthPeeling/Model.java +++ b/src/demos/dualDepthPeeling/Model.java @@ -27,6 +27,8 @@ import java.nio.IntBuffer; import java.util.HashMap; import java.util.Vector; +import com.jogamp.common.util.IOUtil; + public class Model { // @@ -94,7 +96,7 @@ public class Model { // ////////////////////////////////////////////////////////////// public boolean loadModelFromFile( String file ) { - URL fileURL = getClass().getClassLoader().getResource(File.separator + file); + URL fileURL = IOUtil.getResource(Model.class, file); if ( fileURL != null ) { BufferedReader input = null; |