Software Backend: Remove reinterpret_cast which violates the strict aliasing rule

This commit is contained in:
iwubcode
2017-10-24 00:44:14 -05:00
parent 332af8aa49
commit bf7db3f888
4 changed files with 22 additions and 12 deletions

View File

@ -1469,8 +1469,7 @@ void Encode(u8* dst, const EFBCopyParams& params, u32 native_width, u32 bytes_pe
{
if (params.copy_format == EFBCopyFormat::XFB)
{
EfbInterface::EncodeXFB(reinterpret_cast<EfbInterface::yuv422_packed*>(dst), native_width,
src_rect, params.y_scale);
EfbInterface::EncodeXFB(dst, native_width, src_rect, params.y_scale);
}
else
{