diff options
Diffstat (limited to 'src/demos/util/Cubemap.java')
-rwxr-xr-x | src/demos/util/Cubemap.java | 3 |
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) { |