diff options
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/com/sun/opengl/impl/GLDrawableImpl.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/impl/GLDrawableImpl.java b/src/classes/com/sun/opengl/impl/GLDrawableImpl.java index 78b863a79..9ae42906f 100644 --- a/src/classes/com/sun/opengl/impl/GLDrawableImpl.java +++ b/src/classes/com/sun/opengl/impl/GLDrawableImpl.java @@ -50,7 +50,8 @@ public abstract class GLDrawableImpl implements GLDrawable { boolean realized) { this.factory = factory; this.component = comp; - this.requestedCapabilities = (GLCapabilities) requestedCapabilities.clone(); + this.requestedCapabilities = + (requestedCapabilities == null) ? null : (GLCapabilities) requestedCapabilities.clone(); this.realized = realized; } |