You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Blending with white/black should not be applied to semi-transparent sprites when target 1 excludes sprites and target 2 includes disabled backgrounds #2489
Left screenshot is mGBA 0.9.3 with software rendering, right screenshot is NanoBoyAdvance 1.4 (same as hardware). I have attached a test ROM with source code.
I believe I hit the same or a similar bug a while back... in fact I didn't realise it was a bug, and thought it was the other emulators that were doing it wrong 😅
@exelotl that, if it is a bug (please check on hardware), is unrelated to this bug. This bug is about erroneously taking a disabled background into the blending check.
@GValiente What was that screenshot taken on? It doesn't look like that on mGBA either before or after the fix for the OP issue. If that's how it looks on hardware, it might be the same as exelotl's issue, which is not the same as the OP's issue.
I'm still testing my fix though, just to make sure it doesn't regress anything.
Activity
exelotl commentedon Oct 30, 2022
I believe I hit the same or a similar bug a while back... in fact I didn't realise it was a bug, and thought it was the other emulators that were doing it wrong 😅
Here's an example:
https://exelo.tl/files/misc/goodboy-blend-demo.gba
mGBA behaviour:

hardware behaviour:

In my code I have:
GValiente commentedon Oct 30, 2022
Another test ROM.
Blending weights can be changed with the keypad.
endrift commentedon Nov 8, 2022
@exelotl that, if it is a bug (please check on hardware), is unrelated to this bug. This bug is about erroneously taking a disabled background into the blending check.
endrift commentedon Nov 8, 2022
@GValiente What was that screenshot taken on? It doesn't look like that on mGBA either before or after the fix for the OP issue. If that's how it looks on hardware, it might be the same as exelotl's issue, which is not the same as the OP's issue.
I'm still testing my fix though, just to make sure it doesn't regress anything.
GBA Video: Ignore disabled backgrounds as OBJ blend target (fixes #2489)
endrift commentedon Nov 19, 2022
The GL renderer appears to still get this wrong so I'm reopening it until I fix it there too
GBA Video: Fix #2489 in OpenGL renderer
GBA Video: Ignore disabled backgrounds as OBJ blend target (fixes mgb…
GBA Video: Fix mgba-emu#2489 in OpenGL renderer
GBA Video: Ignore disabled backgrounds as OBJ blend target (fixes mgb…
GBA Video: Fix mgba-emu#2489 in OpenGL renderer