From e491306690f5c1e281bb4f673481dc890fef5217 Mon Sep 17 00:00:00 2001
From: Steve Vaughan <snmvaughan@gmail.com>
Date: Wed, 17 Nov 2010 01:11:09 -0500
Subject: Implement CapabilitiesImmutable to indicate that
 getRequestedCapabilities() and getChosenCapabilities() return immutable
 instances.  Add cloneCapabilities() to create a mutable clone of an immutable
 set of capabilities.

---
 .../com/jogamp/opengl/impl/x11/glx/X11GLXGraphicsConfiguration.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/jogl/classes/com/jogamp/opengl/impl/x11')

diff --git a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXGraphicsConfiguration.java b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXGraphicsConfiguration.java
index 8661fba5e..b2bc59578 100644
--- a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXGraphicsConfiguration.java
+++ b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXGraphicsConfiguration.java
@@ -89,7 +89,7 @@ public class X11GLXGraphicsConfiguration extends X11GraphicsConfiguration implem
 
     protected void updateGraphicsConfiguration() {
         X11GLXGraphicsConfiguration newConfig = (X11GLXGraphicsConfiguration)
-            GraphicsConfigurationFactory.getFactory(getScreen().getDevice()).chooseGraphicsConfiguration(getRequestedCapabilities(),
+            GraphicsConfigurationFactory.getFactory(getScreen().getDevice()).chooseGraphicsConfiguration(getRequestedCapabilities().cloneCapabilites(),
                                                                                                          chooser,
                                                                                                          getScreen());
         if(null!=newConfig) {
-- 
cgit v1.2.3