From 33aaa037e31ec7d411f4acaeea63a383037f027d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 12 Nov 2011 13:42:40 +0100 Subject: OSX: Fix context update call It turns our that the native ContextUpdater does not work reliable in all cases, hence we need to verify if the drawable size has changed as well. --- src/jogl/native/macosx/ContextUpdater.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jogl/native') diff --git a/src/jogl/native/macosx/ContextUpdater.m b/src/jogl/native/macosx/ContextUpdater.m index 21f98ad5e..e0668352c 100644 --- a/src/jogl/native/macosx/ContextUpdater.m +++ b/src/jogl/native/macosx/ContextUpdater.m @@ -47,7 +47,7 @@ static void printLockDebugInfo(char *message, char *func, int line) viewUpdated = TRUE; viewRect = r; } - + [self unlock]; } @@ -71,7 +71,7 @@ static void printLockDebugInfo(char *message, char *func, int line) [ctx retain]; [view retain]; viewRect = [view frame]; - viewUpdated = FALSE; + viewUpdated = TRUE; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(update:) name:NSViewGlobalFrameDidChangeNotification object: view]; return [super init]; -- cgit v1.2.3