summaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/games/jogl')
-rw-r--r--src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java
index 470fe631d..2a34709f2 100644
--- a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java
+++ b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java
@@ -122,7 +122,20 @@ public abstract class MacOSXGLContext extends GLContext
throw new GLException("GLContextShareSet returned an invalid OpenGL context");
}
}
- nsContext = CGL.createContext( capabilities, share, nsView);
+ nsContext = CGL.createContext(share,
+ nsView,
+ capabilities.getRedBits(),
+ capabilities.getGreenBits(),
+ capabilities.getBlueBits(),
+ capabilities.getAlphaBits(),
+ capabilities.getDepthBits(),
+ capabilities.getStencilBits(),
+ capabilities.getAccumRedBits(),
+ capabilities.getAccumGreenBits(),
+ capabilities.getAccumBlueBits(),
+ capabilities.getAccumAlphaBits(),
+ capabilities.getSampleBuffers() ? 1 : 0,
+ capabilities.getNumSamples());
if (nsContext == 0) {
throw new GLException("Error creating nsContext");
}