Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Static analysis fix: dereference of a NULL pointer.
- Loading branch information
Showing
with
1 addition
and
3 deletions.
-
+1
−3
src/video/cocoa/SDL_cocoawindow.m
|
@@ -1464,9 +1464,7 @@ - (void)resetCursorRects |
|
|
CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, cgpoint); |
|
|
} |
|
|
|
|
|
if ( window->flags & SDL_WINDOW_FULLSCREEN ) { |
|
|
SDL_WindowData *data = (SDL_WindowData *) window->driverdata; |
|
|
|
|
|
if ( data && (window->flags & SDL_WINDOW_FULLSCREEN) ) { |
|
|
if (SDL_ShouldAllowTopmost() && (window->flags & SDL_WINDOW_INPUT_FOCUS)) { |
|
|
/* OpenGL is rendering to the window, so make it visible! */ |
|
|
[data->nswindow setLevel:CGShieldingWindowLevel()]; |
|
|