diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index f503ef3d1..a68406608 100644 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -1547,13 +1547,7 @@ INLINE void render_sprite_256 ( GPU * gpu, u16 l, u8 * dst, u8 * src, u16 * pal, { int i; u8 palette_entry; - u16 color, oldBLDCNT; - - if (alpha) - { - oldBLDCNT = gpu->BLDCNT; - gpu->BLDCNT = gpu->BLDCNT | 0x10; - } + u16 color; for(i = 0; i < lg; i++, ++sprX, x+=xdir) { @@ -1568,11 +1562,6 @@ INLINE void render_sprite_256 ( GPU * gpu, u16 l, u8 * dst, u8 * src, u16 * pal, prioTab[sprX] = prio; } } - - if (alpha) - { - gpu->BLDCNT = oldBLDCNT; - } } INLINE void render_sprite_16 ( GPU * gpu, u16 l, u8 * dst, u8 * src, u16 * pal, @@ -1580,13 +1569,7 @@ INLINE void render_sprite_16 ( GPU * gpu, u16 l, u8 * dst, u8 * src, u16 * pal, { int i; u8 palette, palette_entry; - u16 color, oldBLDCNT, x1; - - if (alpha) - { - oldBLDCNT = gpu->BLDCNT; - gpu->BLDCNT = gpu->BLDCNT | 0x10; - } + u16 color, x1; for(i = 0; i < lg; i++, ++sprX, x+=xdir) { @@ -1604,11 +1587,6 @@ INLINE void render_sprite_16 ( GPU * gpu, u16 l, u8 * dst, u8 * src, u16 * pal, prioTab[sprX] = prio; } } - - if (alpha) - { - gpu->BLDCNT = oldBLDCNT; - } } INLINE void render_sprite_Win (GPU * gpu, u16 l, u8 * src,