From 697d631bc0333b92689972ff3e621e3549fb6c80 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 18 Feb 2012 18:37:41 +0100 Subject: JOGL'fy dualDepthPeeling demo (Using JOGL ShaderState/Code/Program) --- src/demos/dualDepthPeeling/Model.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/demos/dualDepthPeeling/Model.java') 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; -- cgit v1.2.3