mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 15:10:49 +00:00
Fixed warning C6011: Dereferencing NULL pointer 'display'.
This commit is contained in:
parent
3db4695ac7
commit
4ccc53edfe
1 changed files with 1 additions and 1 deletions
|
|
@ -1508,7 +1508,7 @@ static int SDL_UpdateFullscreenMode(SDL_Window *window, SDL_bool fullscreen)
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (i == _this->num_displays) {
|
||||
if (!display || i == _this->num_displays) {
|
||||
/* Already not fullscreen on any display */
|
||||
goto done;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue