softgpu: Use 0 alpha for 565 alpha blending.

We were previously blending as 0xFF.
This commit is contained in:
Unknown W. Brackets committed 2021-11-25 19:23:40 -08:00
1 parent 2ef7dd6b03
commit 2acf7f4edf
1 file changed
+2 -1
+2 -1
View File
@@ -83,7 +83,8 @@ static inline void SetPixelDepth(int x, int y, u16 value) {
static inline u32 GetPixelColor(GEBufferFormat fmt, int x, int y) {
switch (fmt) {
case GE_FORMAT_565:
return RGB565ToRGBA8888(fb.Get16(x, y, gstate.FrameBufStride()));
// A should be zero for the purposes of alpha blending.
return RGB565ToRGBA8888(fb.Get16(x, y, gstate.FrameBufStride())) & 0x00FFFFFF;
case GE_FORMAT_5551:
return RGBA5551ToRGBA8888(fb.Get16(x, y, gstate.FrameBufStride()));