summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl/awt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-03-26 01:02:39 +0100
committerSven Gothel <[email protected]>2011-03-26 01:02:39 +0100
commitb9aa38f304d0a4726e3a0c64d8ce7adda315baf2 (patch)
tree4bc3e458a4f89899afab8d767d647cb590640f96 /src/jogl/classes/javax/media/opengl/awt
parentcd71c42b6381d48b3e0cf84c3fa215a5166c50c1 (diff)
Fix unnecessary NPE in case of unrealized GLCanvas (getRequestedCapabilities())
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/awt')
-rw-r--r--src/jogl/classes/javax/media/opengl/awt/GLCanvas.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
index 4e6c29e01..4076dac54 100644
--- a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
+++ b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
@@ -710,7 +710,7 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable, WindowClosing
public GLCapabilitiesImmutable getRequestedGLCapabilities() {
if (awtConfig == null) {
- throw new GLException("No AWTGraphicsConfiguration: "+this);
+ return capsReqUser;
}
return (GLCapabilitiesImmutable)awtConfig.getRequestedCapabilities();