From 18aecaccffc7c1c561cb9acf5329636c793e0193 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 24 May 2005 17:26:29 +0000 Subject: Removed bogus test against frame size = (0,0) which was breaking pbuffer support on Mac OS X 10.4 git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@278 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/native/jogl/MacOSXWindowSystemInterface.m | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/native/jogl/MacOSXWindowSystemInterface.m b/src/native/jogl/MacOSXWindowSystemInterface.m index f77c6f2c1..40a95986f 100644 --- a/src/native/jogl/MacOSXWindowSystemInterface.m +++ b/src/native/jogl/MacOSXWindowSystemInterface.m @@ -40,14 +40,7 @@ void* createContext(void* shareContext, void* view, if (nsView != NULL) { - NSRect frame = [nsView frame]; - if ((frame.size.width == 0) || (frame.size.height == 0)) - { - fprintf(stderr, "Error: view width or height == 0at \"%s:%s:%d\"\n", __FILE__, __FUNCTION__, __LINE__); - // the view is not ready yet - return NULL; - } - else if ([nsView lockFocusIfCanDraw] == NO) + if ([nsView lockFocusIfCanDraw] == NO) { if (viewNotReady != NULL) { *viewNotReady = 1; -- cgit v1.2.3