SDL _ LoadBMP rejects 32-bit bitmap images

If you’re learning the SDL library, you’ll probably run into SDL_LoadBMP to load your first image on to the screen. Most people will probably load up paint to create a quick image and save it in .bmp format. However, when you save the image, make sure to save in 24 bit R8 G8 B8 format if you want SDL_LoadBMP to load it successfully. SDL_LoadBMP will return NULL when trying to load 32-bit bitmaps.