summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/windows/wgl
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/windows/wgl
parent502c51bc5a549a79d03249863261af59aedeaeb3 (diff)
GLProfile usage getMinDesktop() -> getMinimum(); WGL/X11 GLCaps: make attributes final
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/windows/wgl')
-rw-r--r--src/jogl/classes/jogamp/opengl/windows/wgl/WGLGLCapabilities.java4
-rw-r--r--src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/jogl/classes/jogamp/opengl/windows/wgl/WGLGLCapabilities.java b/src/jogl/classes/jogamp/opengl/windows/wgl/WGLGLCapabilities.java
index 4b3cd0120..adfddddcd 100644
--- a/src/jogl/classes/jogamp/opengl/windows/wgl/WGLGLCapabilities.java
+++ b/src/jogl/classes/jogamp/opengl/windows/wgl/WGLGLCapabilities.java
@@ -38,8 +38,8 @@ import javax.media.opengl.GLException;
import javax.media.opengl.GLProfile;
public class WGLGLCapabilities extends GLCapabilities {
- PIXELFORMATDESCRIPTOR pfd;
- int pfdID;
+ final PIXELFORMATDESCRIPTOR pfd;
+ final int pfdID;
int arb_pixelformat; // -1 PFD, 0 NOP, 1 ARB
/** Comparing pfd id only */
diff --git a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java
index 8b159ac8e..cef0f0122 100644
--- a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java
+++ b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java
@@ -273,7 +273,7 @@ public class WindowsWGLDrawableFactory extends GLDrawableFactoryImpl {
if (null == absScreen) {
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);
}