Saturate alpha channel for YUV textures
This commit is contained in:
parent
7d6c72211a
commit
09eab8cb03
|
@ -114,9 +114,9 @@ struct pp_8888
|
||||||
__forceinline static u32 packRGB(u8 R,u8 G,u8 B)
|
__forceinline static u32 packRGB(u8 R,u8 G,u8 B)
|
||||||
{
|
{
|
||||||
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && defined(GLES)
|
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && defined(GLES)
|
||||||
return (R << 0) | (G << 8) | (B << 16);
|
return (R << 0) | (G << 8) | (B << 16) | 0xFF000000;
|
||||||
#else
|
#else
|
||||||
return (R << 24) | (G << 16) | (B << 8);
|
return (R << 24) | (G << 16) | (B << 8) | 0xFF;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue