diff src/video/SDL_yuv_sw.c @ 2795:9e7ce3069096

Set the alpha mask fixing software rendering in OpenGL
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Nov 2008 22:11:01 +0000
parents 6bacfecbf27e
children 7e5ff6cd05bf
line wrap: on
line diff
--- a/src/video/SDL_yuv_sw.c	Thu Nov 27 21:53:18 2008 +0000
+++ b/src/video/SDL_yuv_sw.c	Thu Nov 27 22:11:01 2008 +0000
@@ -939,10 +939,13 @@
     for (i = 0; i < 256; ++i) {
         r_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(Rmask));
         r_2_pix_alloc[i + 256] <<= free_bits_at_bottom(Rmask);
+        r_2_pix_alloc[i + 256] |= Amask;
         g_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(Gmask));
         g_2_pix_alloc[i + 256] <<= free_bits_at_bottom(Gmask);
+        g_2_pix_alloc[i + 256] |= Amask;
         b_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(Bmask));
         b_2_pix_alloc[i + 256] <<= free_bits_at_bottom(Bmask);
+        b_2_pix_alloc[i + 256] |= Amask;
     }
 
     /*