diff options
author | Sven Gothel <[email protected]> | 2019-12-09 07:12:56 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-12-09 07:12:56 +0100 |
commit | 606fbe8b3f4c420f1c4faecf4f49276e054543a0 (patch) | |
tree | cc7d1403e85b6e71370d088fee2dcbbc5198b9f3 /src/jogl/classes/com/jogamp/opengl/GLCapabilities.java | |
parent | 438f4bef0004834485c36eee013dae9199dd55d9 (diff) |
Bug 1156: NEWT WindowDriver: Handle case with requested CapabilitiesImmutable not being GLCapabilitiesImmutable
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/GLCapabilities.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/GLCapabilities.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/GLCapabilities.java b/src/jogl/classes/com/jogamp/opengl/GLCapabilities.java index 02aa47119..411951851 100644 --- a/src/jogl/classes/com/jogamp/opengl/GLCapabilities.java +++ b/src/jogl/classes/com/jogamp/opengl/GLCapabilities.java @@ -99,6 +99,16 @@ public class GLCapabilities extends Capabilities implements Cloneable, GLCapabil } /** + * Copies all {@link CapabilitiesImmutable} values + * from <code>source</code> into this instance. + * @return this instance + */ + public GLCapabilities copyFrom(final CapabilitiesImmutable source) { + super.copyFrom(source); + return this; + } + + /** * Copies all {@link GLCapabilitiesImmutable} values * from <code>source</code> into this instance. * @return this instance |