diff options
author | Sven Gothel <[email protected]> | 2010-11-23 05:07:51 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-23 05:07:51 +0100 |
commit | ae1ca3f2cae849f5e5a44538284082e861a98de1 (patch) | |
tree | 65c3c820ae0c744bc1f60393d41ffec6984a786d /src/demos/proceduralTexturePhysics | |
parent | a6076ff25bd3abd2d1e12f77dfde3f255ac67e7d (diff) |
Adapt to JOGL 7262641429b542929efc699e392f410f1dee2187
Diffstat (limited to 'src/demos/proceduralTexturePhysics')
-rw-r--r-- | src/demos/proceduralTexturePhysics/Water.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/demos/proceduralTexturePhysics/Water.java b/src/demos/proceduralTexturePhysics/Water.java index 593c2f0..1710ef4 100644 --- a/src/demos/proceduralTexturePhysics/Water.java +++ b/src/demos/proceduralTexturePhysics/Water.java @@ -49,6 +49,7 @@ import javax.media.opengl.GL; import javax.media.opengl.GL2; import javax.media.opengl.GLAutoDrawable; import javax.media.opengl.GLCapabilities; +import javax.media.opengl.GLCapabilitiesImmutable; import javax.media.opengl.GLDrawableFactory; import javax.media.opengl.GLEventListener; import javax.media.opengl.GLException; @@ -203,7 +204,7 @@ public class Water { String cubeMapFilenamePrefix, String cubeMapFilenameSuffix, GLAutoDrawable parentWindow) { - GLCapabilities caps = parentWindow.getChosenGLCapabilities(); + GLCapabilities caps = (GLCapabilities) parentWindow.getChosenGLCapabilities().cloneMutable(); loadInitialTexture(caps.getGLProfile(), initialMapFilename); tmpSpinFilename = spinFilename; |