diff options
-rw-r--r-- | make/cgl-macosx.cfg | 1 | ||||
-rw-r--r-- | make/stub_includes/macosx/window-system.c | 1 | ||||
-rw-r--r-- | src/native/jogl/MacOSXWindowSystemInterface.m | 1 | ||||
-rw-r--r-- | src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/make/cgl-macosx.cfg b/make/cgl-macosx.cfg index b9ebaeabd..c7a7f3841 100644 --- a/make/cgl-macosx.cfg +++ b/make/cgl-macosx.cfg @@ -16,6 +16,7 @@ CustomCCode typedef int Bool; CustomCCode #include </usr/include/machine/types.h> CustomCCode extern void* createContext(void* shareContext, void* nsView, +CustomCCode int doubleBuffer, CustomCCode int redBits, CustomCCode int greenBits, CustomCCode int blueBits, diff --git a/make/stub_includes/macosx/window-system.c b/make/stub_includes/macosx/window-system.c index 4b3f95649..e5ba4307f 100644 --- a/make/stub_includes/macosx/window-system.c +++ b/make/stub_includes/macosx/window-system.c @@ -4,6 +4,7 @@ typedef int Bool; void* createContext(void* shareContext, void* nsView, + int doubleBuffer, int redBits, int greenBits, int blueBits, diff --git a/src/native/jogl/MacOSXWindowSystemInterface.m b/src/native/jogl/MacOSXWindowSystemInterface.m index c56f6e5bb..afa0fea69 100644 --- a/src/native/jogl/MacOSXWindowSystemInterface.m +++ b/src/native/jogl/MacOSXWindowSystemInterface.m @@ -17,6 +17,7 @@ typedef int Bool; NSAutoreleasePool* gAutoreleasePool = NULL; void* createContext(void* shareContext, void* view, + int doubleBuffer, int redBits, int greenBits, int blueBits, diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java index f8af120da..3c8027e7c 100644 --- a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java +++ b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java @@ -132,6 +132,7 @@ public abstract class MacOSXGLContext extends GLContext } nsContext = CGL.createContext(share, nsView, + capabilities.getDoubleBuffered() ? 1 : 0, capabilities.getRedBits(), capabilities.getGreenBits(), capabilities.getBlueBits(), |