mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Ignore disabled backgrounds as OBJ blend target (fixes #2489)
This commit is contained in:
parent
c4384d1d1e
commit
2ea0114ae2
1
CHANGES
1
CHANGES
|
@ -4,6 +4,7 @@ Features:
|
|||
- Debugger: Add range watchpoints
|
||||
Emulation fixes:
|
||||
- GB Serialize: Don't write BGP/OBP when loading SCGB state (fixes mgba.io/i/2694)
|
||||
- GBA Video: Ignore disabled backgrounds as OBJ blend target (fixes mgba.io/i/2489)
|
||||
Other fixes:
|
||||
- Qt: Manually split filename to avoid overzealous splitting (fixes mgba.io/i/2681)
|
||||
- Qt: Expand criteria for tag branch names (fixes mgba.io/i/2679)
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
|
@ -0,0 +1,3 @@
|
|||
[testinfo]
|
||||
skip=10
|
||||
frames=1
|
Binary file not shown.
|
@ -169,10 +169,10 @@ int GBAVideoSoftwareRendererPreprocessSprite(struct GBAVideoSoftwareRenderer* re
|
|||
(renderer->blendEffect == BLEND_BRIGHTEN || renderer->blendEffect == BLEND_DARKEN);
|
||||
if (GBAObjAttributesAGetMode(sprite->a) == OBJ_MODE_SEMITRANSPARENT || (renderer->target1Obj && renderer->blendEffect == BLEND_ALPHA) || objwinSlowPath) {
|
||||
int target2 = renderer->target2Bd;
|
||||
target2 |= renderer->bg[0].target2;
|
||||
target2 |= renderer->bg[1].target2;
|
||||
target2 |= renderer->bg[2].target2;
|
||||
target2 |= renderer->bg[3].target2;
|
||||
target2 |= renderer->bg[0].target2 && renderer->bg[0].enabled;
|
||||
target2 |= renderer->bg[1].target2 && renderer->bg[1].enabled;
|
||||
target2 |= renderer->bg[2].target2 && renderer->bg[2].enabled;
|
||||
target2 |= renderer->bg[3].target2 && renderer->bg[3].enabled;
|
||||
if (target2) {
|
||||
renderer->forceTarget1 = true;
|
||||
flags |= FLAG_REBLEND;
|
||||
|
|
Loading…
Reference in New Issue