all repos — mgba @ fd7d85c1403b70c7fa5a562ee1694333aa559c6c

mGBA Game Boy Advance Emulator

DS GX: Retain translucent polygon ID when drawing opaque fragments (fixes #661)
Vicki Pfau vi@endrift.com
Mon, 24 Apr 2017 19:05:58 -0700
commit

fd7d85c1403b70c7fa5a562ee1694333aa559c6c

parent

607a6921687fd12e119eeaed93d9f7bc0b0e1a14

2 files changed, 3 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -24,6 +24,7 @@ - DS Slot-1: Emulate initial SPI command delay

- DS: Fix exposed CPU frequencies and audio timing - DS Audio: Fix audio sampling slightly too quickly - Feature: Fix resizing GIF buffer (fixes mgba.io/i/695) + - DS GX: Retain translucent polygon ID when drawing opaque fragments (fixes mgba.io/i/661) Misc: - DS: Set boot complete bit in RAM on boot (fixes mgba.io/i/576, mgba.io/i/580, mgba.io/i/586) - DS Memory: Ensure DS9 I/O is 8-byte aligned
M src/ds/gx/software.csrc/ds/gx/software.c

@@ -645,7 +645,8 @@ }

if (a == 0x1F) { depth[x] = span->ep[0].coord[softwareRenderer->sort]; scanline[x] = color; - stencil[x] = s & 0x3F00; + stencil[x] &= 0x00FF; + stencil[x] |= s & 0x3F00; } else if (a) { // TODO: Disable alpha? if (b) {