summaryrefslogtreecommitdiffstats
path: root/src/demos/particles/engine/Engine.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/particles/engine/Engine.java')
-rwxr-xr-xsrc/demos/particles/engine/Engine.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demos/particles/engine/Engine.java b/src/demos/particles/engine/Engine.java
index d769457..d443ac2 100755
--- a/src/demos/particles/engine/Engine.java
+++ b/src/demos/particles/engine/Engine.java
@@ -37,6 +37,7 @@
package demos.particles.engine;
import javax.media.opengl.*;
+
import com.jogamp.opengl.util.texture.*;
import java.net.*;
import java.util.*;
@@ -78,12 +79,12 @@ public class Engine {
}
}
- public void init() {
+ public void init(GL gl) {
try {
ClassLoader c1 = this.getClass().getClassLoader();
URL url = c1.getResource(path);
texture = TextureIO.newTexture(url, false, null);
- texture.enable();
+ texture.enable(gl);
}
catch(IOException e) {
e.printStackTrace();