Set the alpha mask fixing software rendering in OpenGL
authorSam Lantinga <slouken@libsdl.org>
Thu, 27 Nov 2008 22:11:01 +0000
changeset 2795 9e7ce3069096
parent 2794 f7872b7a8732
child 2796 9f6601537163
Set the alpha mask fixing software rendering in OpenGL
src/video/SDL_yuv_sw.c
--- 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;
     }
 
     /*