summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-05-24 17:26:29 +0000
committerKenneth Russel <[email protected]>2005-05-24 17:26:29 +0000
commit18aecaccffc7c1c561cb9acf5329636c793e0193 (patch)
treec6e6a632cecac3096c0a98b7560aaa5c1a0da8a5
parent5f51f9c91e021c1fd1202899b531541b48cc97b9 (diff)
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
-rw-r--r--src/native/jogl/MacOSXWindowSystemInterface.m9
1 files changed, 1 insertions, 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;