Changeset 20986

Show
Ignore:
Timestamp:
01/03/08 17:52:50 (8 months ago)
Author:
patrick
Message:

MFT r20983: Fixed a race condition that could cause application crashes at

startup. This is extracted from a patch posted to the
vrjuggler-devel list by Daniel Shipton.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OGL/GlWindowCocoa.mm

    r20945 r20986  
    207207                                     inputHandling:handle_input]; 
    208208      mMainView = mGlView; 
    209  
    210       // mCocoaWindow retains a refernece to mGlView, meaning that the 
    211       // reference count on it is now two. We release our reference to mGlView 
    212       // later when we are done with it. 
    213       [mCocoaWindow setContentView:mGlView]; 
    214       [mCocoaWindow setInitialFirstResponder:mGlView]; 
    215209 
    216210      // If the window is full screen, then it has to be at the shielding 
     
    259253         makeCurrent(); 
    260254         // TODO: Add extension loading stuff. 
     255 
     256         // mCocoaWindow retains a refernece to mGlView, meaning that the 
     257         // reference count on it is now two. We release our reference to 
     258         // mGlView later when we are done with it. 
     259         [mCocoaWindow setContentView:mGlView]; 
     260         [mCocoaWindow setInitialFirstResponder:mGlView]; 
    261261      } 
    262262   }