Skip to content

Commit

Permalink
Fixed building when SDL2IMAGE_PNG is disabled
Browse files Browse the repository at this point in the history
Fixes #297

(cherry picked from commit b8e9dd3)
  • Loading branch information
slouken committed Oct 16, 2023
1 parent c4cd804 commit ee96e0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,11 @@ static const Format formats[] =
#else
SDL_FALSE,
#endif
SDL_IMAGE_SAVE_PNG,
#ifdef SDL_IMAGE_SAVE_PNG
SDL_IMAGE_SAVE_PNG ? SDL_TRUE : SDL_FALSE,
#else
SDL_FALSE,
#endif
IMG_isPNG,
IMG_LoadPNG_RW,
},
Expand Down

0 comments on commit ee96e0b

Please sign in to comment.