aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;