Set the alpha mask fixing software rendering in OpenGL
authorSam Lantinga <slouken@libsdl.org>
Thu, 27 Nov 2008 22:11:01 +0000
changeset 27959e7ce3069096
parent 2794 f7872b7a8732
child 2796 9f6601537163
Set the alpha mask fixing software rendering in OpenGL
src/video/SDL_yuv_sw.c
     1.1 --- a/src/video/SDL_yuv_sw.c	Thu Nov 27 21:53:18 2008 +0000
     1.2 +++ b/src/video/SDL_yuv_sw.c	Thu Nov 27 22:11:01 2008 +0000
     1.3 @@ -939,10 +939,13 @@
     1.4      for (i = 0; i < 256; ++i) {
     1.5          r_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(Rmask));
     1.6          r_2_pix_alloc[i + 256] <<= free_bits_at_bottom(Rmask);
     1.7 +        r_2_pix_alloc[i + 256] |= Amask;
     1.8          g_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(Gmask));
     1.9          g_2_pix_alloc[i + 256] <<= free_bits_at_bottom(Gmask);
    1.10 +        g_2_pix_alloc[i + 256] |= Amask;
    1.11          b_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(Bmask));
    1.12          b_2_pix_alloc[i + 256] <<= free_bits_at_bottom(Bmask);
    1.13 +        b_2_pix_alloc[i + 256] |= Amask;
    1.14      }
    1.15  
    1.16      /*