From 7da326380ca234d31627c5eaa8e7eacd3bfb8a4d Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 10 May 2005 17:47:31 +0000 Subject: Fixed race conditions in Mac OS X onscreen context creation that showed up after recent GLJPanel fix to clean up resource leaks. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@267 232f8b59-042b-4e1e-8c03-345bb8c30851 --- make/cgl-macosx.cfg | 3 ++- make/stub_includes/macosx/window-system.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'make') diff --git a/make/cgl-macosx.cfg b/make/cgl-macosx.cfg index dab1ec206..e4fad5a5f 100644 --- a/make/cgl-macosx.cfg +++ b/make/cgl-macosx.cfg @@ -28,7 +28,8 @@ CustomCCode int accumGreenBits, CustomCCode int accumBlueBits, CustomCCode int accumAlphaBits, CustomCCode int sampleBuffers, -CustomCCode int numSamples); +CustomCCode int numSamples, +CustomCCode int* viewNotReady); CustomCCode extern Bool makeCurrentContext(void* nsContext, void* nsView); CustomCCode extern Bool clearCurrentContext(void* nsContext, void* nsView); CustomCCode extern Bool deleteContext(void* nsContext, void* nsView); diff --git a/make/stub_includes/macosx/window-system.c b/make/stub_includes/macosx/window-system.c index b30c252f3..8ce6120a3 100644 --- a/make/stub_includes/macosx/window-system.c +++ b/make/stub_includes/macosx/window-system.c @@ -16,7 +16,8 @@ void* createContext(void* shareContext, void* nsView, int accumBlueBits, int accumAlphaBits, int sampleBuffers, - int numSamples); + int numSamples, + int* viewNotReady); Bool makeCurrentContext(void* nsContext, void* nsView); Bool clearCurrentContext(void* nsContext, void* nsView); Bool deleteContext(void* nsContext, void* nsView); -- cgit v1.2.3