mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Fix #2489 in OpenGL renderer
This commit is contained in:
parent
1a4dc70731
commit
3d723d5cf4
|
@ -664,11 +664,13 @@ static const char* const _finalize =
|
|||
" if (((topFlags.y & 13) == 5 || topFlags.w > 0) && (bottomFlags.y & 2) == 2) {\n"
|
||||
" topPixel.rgb *= float(topFlags.z) / 16.;\n"
|
||||
" topPixel.rgb += bottomPixel.rgb * float(windowFlags.y) / 16.;\n"
|
||||
" } else if ((topFlags.y & 13) == 9) {\n"
|
||||
" } else if (topFlags.w == 0) { \n"
|
||||
" if ((topFlags.y & 13) == 9) {\n"
|
||||
" topPixel.rgb += (1. - topPixel.rgb) * float(windowFlags.z) / 16.;\n"
|
||||
" } else if ((topFlags.y & 13) == 13) {\n"
|
||||
" topPixel.rgb -= topPixel.rgb * float(windowFlags.z) / 16.;\n"
|
||||
" }\n"
|
||||
" }\n"
|
||||
" color = topPixel;\n"
|
||||
"}";
|
||||
|
||||
|
|
Loading…
Reference in New Issue