diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2017-10-26 21:01:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-26 21:01:27 +0200 |
| commit | 802fda26ab0959f92327a37fac966d728c8dcc5f (patch) | |
| tree | c63f2d645a93134d6e8155b739233b0d5e0ed640 /Source/Core | |
| parent | 3f6017343b91e079996ab16db03791ac907b4172 (diff) | |
| parent | e0a326a493c68682cee3180f2edd60617878db53 (diff) | |
Merge pull request #6093 from endrift/fix-efb-overflow
VideoCommon: Fix overflow trying to access outside of EFB bounds
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/VideoCommon/MainBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/MainBase.cpp b/Source/Core/VideoCommon/MainBase.cpp index 179efdbd41..d442e7f0b8 100644 --- a/Source/Core/VideoCommon/MainBase.cpp +++ b/Source/Core/VideoCommon/MainBase.cpp @@ -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; } |
