diff options
author | Sven Gothel <[email protected]> | 2011-10-26 12:50:44 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-26 12:50:44 +0200 |
commit | f326119fd60eb3a851317bbed5bd57a535816014 (patch) | |
tree | bbe8cd14ed7c2e883a90818fb9303bc7d73001f1 /src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXExternalCGLContext.java | |
parent | 82c7c16b6298a5a781c9721edb8b81d7ec2aaf81 (diff) |
OSX: Enable OpenGL profile support, ie OpenGL 3.2 -> GL3 for OSX >= 10.7
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXExternalCGLContext.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXExternalCGLContext.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXExternalCGLContext.java b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXExternalCGLContext.java index 0d5f5ce8e..08a531200 100644 --- a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXExternalCGLContext.java +++ b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXExternalCGLContext.java @@ -68,7 +68,7 @@ public class MacOSXExternalCGLContext extends MacOSXCGLContext { getGLStateTracker().setEnabled(false); // external context usage can't track state in Java } - protected static MacOSXExternalCGLContext create(GLDrawableFactory factory, GLProfile glp) { + protected static MacOSXExternalCGLContext create(GLDrawableFactory factory) { long pixelFormat = 0; long currentDrawable = 0; long contextHandle = CGL.getCurrentContext(); // Check: MacOSX 10.3 .. @@ -101,7 +101,7 @@ public class MacOSXExternalCGLContext extends MacOSXCGLContext { if (0 == pixelFormat) { throw new GLException("Error: current pixelformat of current Context 0x"+Long.toHexString(contextHandle)+" is null"); } - GLCapabilitiesImmutable caps = MacOSXCGLGraphicsConfiguration.CGLPixelFormat2GLCapabilities(glp, pixelFormat); + GLCapabilitiesImmutable caps = MacOSXCGLGraphicsConfiguration.CGLPixelFormat2GLCapabilities(pixelFormat); if(DEBUG) { System.err.println("MacOSXExternalCGLContext Create "+caps); } |