Saturate alpha channel for YUV textures

This commit is contained in:
Flyinghead 2018-07-18 22:35:55 +02:00
parent 7d6c72211a
commit 09eab8cb03
1 changed files with 2 additions and 2 deletions

View File

@ -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
} }
}; };