mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-18 02:38:27 +00:00
Remove un-needed check for NULL pointer. They were previously checked just before.
This commit is contained in:
parent
8ea96f365f
commit
1d7966df15
5 changed files with 8 additions and 13 deletions
|
@ -1078,7 +1078,7 @@ SDL_CreateRenderer(SDL_Window * window, int index, Uint32 flags)
|
|||
/* new textures start at zero, so we start at 1 so first render doesn't flush by accident. */
|
||||
renderer->render_command_generation = 1;
|
||||
|
||||
if (window && renderer->GetOutputSize) {
|
||||
if (renderer->GetOutputSize) {
|
||||
int window_w, window_h;
|
||||
int output_w, output_h;
|
||||
if (renderer->GetOutputSize(renderer, &output_w, &output_h) == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue