STORM-2081 - Guard against null gWindowImplementation when fullscreen (crashes OS X Yosemite)

Cinder 2014-10-23 12:45:05 -06:00
parent 6252c81775
commit 3c3d74e487
1 changed files with 4 additions and 1 deletions

View File

@ -238,7 +238,10 @@ void callFocus()
void callFocusLost()
{
gWindowImplementation->getCallbacks()->handleFocusLost(gWindowImplementation);
if (gWindowImplementation)
{
gWindowImplementation->getCallbacks()->handleFocusLost(gWindowImplementation);
}
}
void callRightMouseDown(float *pos, MASK mask)