Remove un-needed check for NULL pointer. They were previously checked just before.

This commit is contained in:
Sylvain 2022-11-16 21:27:16 +01:00
parent 8ea96f365f
commit 1d7966df15
No known key found for this signature in database
GPG key ID: 5F87E02E5BC0939E
5 changed files with 8 additions and 13 deletions

View file

@ -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) {