Merge pull request #6093 from endrift/fix-efb-overflow

VideoCommon: Fix overflow trying to access outside of EFB bounds
This commit is contained in:
Markus Wick 2017-10-26 21:01:27 +02:00 committed by GitHub
commit 802fda26ab
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ void VideoBackendBase::Video_BeginField(u32 xfbAddr, u32 fbWidth, u32 fbStride,
u32 VideoBackendBase::Video_AccessEFB(EFBAccessType type, u32 x, u32 y, u32 InputData)
{
if (!g_ActiveConfig.bEFBAccessEnable)
if (!g_ActiveConfig.bEFBAccessEnable || x >= EFB_WIDTH || y >= EFB_HEIGHT)
{
return 0;
}