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 9b44b372a0965fb73e3d9c7e422812f21ae7161a..73c42b68c023d0e57b72ce967e3935ceee5ac7be 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)