aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/x11
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-07-31 20:37:39 +0200
committerSven Gothel <[email protected]>2011-07-31 20:37:39 +0200
commitd15b941d707bc286d0c33a1ead9464028e9a6c37 (patch)
tree9e1fb12abfae5b0b15486129772fbef56d509012 /src/jogl/classes/jogamp/opengl/x11
parent502c51bc5a549a79d03249863261af59aedeaeb3 (diff)
GLProfile usage getMinDesktop() -> getMinimum(); WGL/X11 GLCaps: make attributes final
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/x11')
-rw-r--r--src/jogl/classes/jogamp/opengl/x11/glx/X11GLCapabilities.java6
-rw-r--r--src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLCapabilities.java b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLCapabilities.java
index 5455976da..0f496b4a2 100644
--- a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLCapabilities.java
+++ b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLCapabilities.java
@@ -35,9 +35,9 @@ import javax.media.opengl.GLProfile;
import java.util.Comparator;
public class X11GLCapabilities extends GLCapabilities {
- XVisualInfo xVisualInfo; // maybe null if !onscreen
- long fbcfg;
- int fbcfgid;
+ final XVisualInfo xVisualInfo; // maybe null if !onscreen
+ final long fbcfg;
+ final int fbcfgid;
/** Comparing xvisual id only */
public static class XVisualIDComparator implements Comparator {
diff --git a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java
index 48f9dd875..872503b36 100644
--- a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java
+++ b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java
@@ -181,7 +181,7 @@ public class X11GLXDrawableFactory extends GLDrawableFactoryImpl {
if (null == sharedScreen) {
throw new GLException("Couldn't create shared screen for device: "+sharedDevice+", idx 0");
}
- GLProfile glp = GLProfile.getMinDesktop(sharedDevice);
+ GLProfile glp = GLProfile.getMinimum(sharedDevice);
if (null == glp) {
throw new GLException("Couldn't get default GLProfile for device: "+sharedDevice);
}