summaryrefslogtreecommitdiffstats
path: root/src/demos/util/Cubemap.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-03-26 20:00:46 +0100
committerSven Gothel <[email protected]>2010-03-26 20:00:46 +0100
commitd1dfb4a367b3fa2350122a9623e3f1b56210a86e (patch)
tree9d3b4bc39d8cb7ff8c9dadeb291e435d9ad6cdd0 /src/demos/util/Cubemap.java
parent08d7de9c49d6bd778d0a915731ae9edbafdf646c (diff)
Adapted JOGL TextureData API changes (138a5b057e39a4738a2e82f370424a9a21aceea9)
Diffstat (limited to 'src/demos/util/Cubemap.java')
-rwxr-xr-xsrc/demos/util/Cubemap.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/demos/util/Cubemap.java b/src/demos/util/Cubemap.java
index 405fc38..6c1a332 100755
--- a/src/demos/util/Cubemap.java
+++ b/src/demos/util/Cubemap.java
@@ -46,6 +46,7 @@ import com.sun.opengl.util.texture.TextureIO;
import java.io.IOException;
import javax.media.opengl.GL;
import javax.media.opengl.GLException;
+import javax.media.opengl.GLContext;
@@ -69,7 +70,7 @@ public class Cubemap {
for (int i = 0; i < suffixes.length; i++) {
String resourceName = basename + suffixes[i] + "." + suffix;
- TextureData data = TextureIO.newTextureData(scope.getResourceAsStream(resourceName),
+ TextureData data = TextureIO.newTextureData(GLContext.getCurrentGL().getGLProfile(), scope.getResourceAsStream(resourceName),
mipmapped,
FileUtil.getFileSuffix(resourceName));
if (data == null) {