changed pixel format check to ignore alpha channel
authorHolger Schemel <info@artsoft.org>
Mon, 27 Jun 2016 05:15:57 +0000 (07:15 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 27 Jun 2016 05:15:57 +0000 (07:15 +0200)
src/libgame/sdl.c

index 9b44b37..73c42b6 100644 (file)
@@ -223,8 +223,7 @@ static boolean equalSDLPixelFormat(SDL_PixelFormat *format1,
          format1->BytesPerPixel == format2->BytesPerPixel &&
          format1->Rmask         == format2->Rmask &&
          format1->Gmask         == format2->Gmask &&
-         format1->Bmask         == format2->Bmask &&
-         format1->Amask         == format2->Amask);
+         format1->Bmask         == format2->Bmask);
 }
 
 boolean SDLSetNativeSurface(SDL_Surface **surface)