aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-31 00:48:40 +0200
committerSven Gothel <[email protected]>2014-07-31 00:48:40 +0200
commita8ccbdf228727d8eef7e6684b738a118610b5744 (patch)
treed2ee4db61f19f04258f06cb4d3af09096e556f79 /src/jogl/classes/com
parent289ba90b9ce118ba987b47ee70870cca77287cc0 (diff)
GLDrawable: Expose getRequestedGLCapabilities() (Include to public API)
In certain cases, it is required to read the user requested capabilities from places other than the user code. Hence adding public method to GLDrawable interface. This removes the need to cast to private GLDrawableImpl, which included such method.
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java b/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java
index eae5948ed..03c6d6929 100644
--- a/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java
+++ b/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java
@@ -832,14 +832,10 @@ public class GLCanvas extends Canvas implements GLAutoDrawable, GLSharedContextS
return null != _drawable ? (GLCapabilitiesImmutable)_drawable.getChosenGLCapabilities() : null;
}
- /**
- * Accessor for the GLCapabilities that were requested (via the constructor parameter).
- *
- * @return Non-null GLCapabilities.
- */
+ @Override
public GLCapabilitiesImmutable getRequestedGLCapabilities() {
final GLDrawable _drawable = drawable;
- return null != _drawable ? (GLCapabilitiesImmutable)_drawable.getNativeSurface().getGraphicsConfiguration().getRequestedCapabilities() : null;
+ return null != _drawable ? (GLCapabilitiesImmutable)_drawable.getRequestedGLCapabilities() : null;
}
@Override