mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 15:53:35 +01:00
softgpu: Use 0 alpha for 565 alpha blending.
We were previously blending as 0xFF.
This commit is contained in:
1 parent
2ef7dd6b03
commit
2acf7f4edf
1 file changed
+2
-1
@@ -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()));
|
||||
|
||||
Reference in new issue
Block a user