GBA Video: Fix rare regression blending semitransparent sprites (fixes #1876)
This commit is contained in:
parent
d1178689cb
commit
17ca8f524a
1
CHANGES
1
CHANGES
@ -43,6 +43,7 @@ Emulation fixes:
|
||||
- GBA Video: Invalidate map cache when modifying BGCNT (fixes mgba.io/i/1846)
|
||||
- GBA Video: Don't draw sprites using unmapped VRAM in GL renderer (fixes mgba.io/i/1865)
|
||||
- GBA Video: Implement green swap (fixes mgba.io/i/1609)
|
||||
- GBA Video: Fix rare regression blending semitransparent sprites (fixes mgba.io/i/1876)
|
||||
- SM83: Emulate HALT bug
|
||||
Other fixes:
|
||||
- 3DS: Redo video sync to be more precise
|
||||
|
BIN
cinema/gba/blend/sma2-semitrans/baseline_0000.png
Normal file
BIN
cinema/gba/blend/sma2-semitrans/baseline_0000.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
BIN
cinema/gba/blend/sma2-semitrans/baseline_0001.png
Normal file
BIN
cinema/gba/blend/sma2-semitrans/baseline_0001.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
BIN
cinema/gba/blend/sma2-semitrans/baseline_0002.png
Normal file
BIN
cinema/gba/blend/sma2-semitrans/baseline_0002.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
BIN
cinema/gba/blend/sma2-semitrans/baseline_0003.png
Normal file
BIN
cinema/gba/blend/sma2-semitrans/baseline_0003.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
cinema/gba/blend/sma2-semitrans/baseline_0004.png
Normal file
BIN
cinema/gba/blend/sma2-semitrans/baseline_0004.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
cinema/gba/blend/sma2-semitrans/baseline_0005.png
Normal file
BIN
cinema/gba/blend/sma2-semitrans/baseline_0005.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
cinema/gba/blend/sma2-semitrans/test.mvl
Normal file
BIN
cinema/gba/blend/sma2-semitrans/test.mvl
Normal file
Binary file not shown.
@ -162,7 +162,7 @@ int GBAVideoSoftwareRendererPreprocessSprite(struct GBAVideoSoftwareRenderer* re
|
||||
}
|
||||
|
||||
int objwinSlowPath = GBARegisterDISPCNTIsObjwinEnable(renderer->dispcnt) && GBAWindowControlGetBlendEnable(renderer->objwin.packed) != GBAWindowControlIsBlendEnable(renderer->currentWindow.packed);
|
||||
int variant = (renderer->target1Obj || GBAObjAttributesAGetMode(sprite->a) == OBJ_MODE_SEMITRANSPARENT) &&
|
||||
int variant = renderer->target1Obj &&
|
||||
GBAWindowControlIsBlendEnable(renderer->currentWindow.packed) &&
|
||||
(renderer->blendEffect == BLEND_BRIGHTEN || renderer->blendEffect == BLEND_DARKEN);
|
||||
if (GBAObjAttributesAGetMode(sprite->a) == OBJ_MODE_SEMITRANSPARENT || (renderer->target1Obj && renderer->blendEffect == BLEND_ALPHA) || objwinSlowPath) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user