From c15bfa2dce50ae132736dd678192f819d5ba2404 Mon Sep 17 00:00:00 2001
From: Kenneth Russel <kbrussel@alum.mit.edu>
Date: Mon, 20 Feb 2006 21:25:05 +0000
Subject: Changed locking protocol for on-screen surfaces to only use the
 JAWT's DrawingSurface locking primitives during the makeCurrent operation.
 While in theory the JAWT should be used for locking for the entire duration
 of the makeCurrent/release pair, in practice because OpenGL is orthogonal to
 the window system this is not really necessary, at least if higher-level
 locking primitives are used to make sure the window is not torn down out from
 under the library while OpenGL rendering is being performed. The
 OpenGL-related work done in GLCanvas.addNotify() and removeNotify() handles
 this. These changes enable simultaneous multi-head rendering on X11 systems
 with one OpenGL context per thread. Changed GLContext.destroy() to acquire
 the context's lock during the destroyImpl operation for correctness in the
 new protocol. Changed several Mac OS X native code entry points to not take
 an unnecessary NSView* argument. Tested with several demos on all platforms
 to stress creation and destruction of multiple kinds of OpenGL contexts.

git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@624 232f8b59-042b-4e1e-8c03-345bb8c30851
---
 make/stub_includes/opengl/macosx-window-system.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'make/stub_includes/opengl')

diff --git a/make/stub_includes/opengl/macosx-window-system.h b/make/stub_includes/opengl/macosx-window-system.h
index 3eb6ce514..959c2352e 100644
--- a/make/stub_includes/opengl/macosx-window-system.h
+++ b/make/stub_includes/opengl/macosx-window-system.h
@@ -27,11 +27,11 @@ void* createContext(void* shareContext, void* nsView,
                     int pbuffer,
                     int floatingPoint,
                     int* viewNotReady);
-Bool  makeCurrentContext(void* nsContext, void* nsView);
-Bool  clearCurrentContext(void* nsContext, void* nsView);
-Bool  deleteContext(void* nsContext, void* nsView);
-Bool  flushBuffer(void* nsContext, void* nsView);
-void  updateContext(void* nsContext, void* nsView);
+Bool  makeCurrentContext(void* nsContext);
+Bool  clearCurrentContext(void* nsContext);
+Bool  deleteContext(void* nsContext);
+Bool  flushBuffer(void* nsContext);
+void  updateContext(void* nsContext);
 
 void* updateContextRegister(void* nsContext, void* nsView);
 void  updateContextUnregister(void* nsContext, void* nsView, void* updater);
-- 
cgit v1.2.3