Fixed warning C6011: Dereferencing NULL pointer 'display'.
This commit is contained in:
1 parent
3db4695ac7
commit
4ccc53edfe
1 file changed
+1
-1
@@ -1508,7 +1508,7 @@ static int SDL_UpdateFullscreenMode(SDL_Window *window, SDL_bool fullscreen)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i == _this->num_displays) {
|
if (!display || i == _this->num_displays) {
|
||||||
/* Already not fullscreen on any display */
|
/* Already not fullscreen on any display */
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user