diff options
| author | Markus Wick <markus@selfnet.de> | 2015-08-29 08:56:32 +0200 |
|---|---|---|
| committer | Markus Wick <markus@selfnet.de> | 2015-08-29 08:56:32 +0200 |
| commit | a16669231aa273244fac4327156a2a0cce37e749 (patch) | |
| tree | 9f9f70e2ea2cbe6e969913d1f7644ebd6fc91324 /Source/Core/VideoBackends/OGL/GLInterface/EGL.cpp | |
| parent | 6004ecc5215e4d1e77865d94adf5c76cb68007e2 (diff) | |
| parent | 01db003779ff7240efa40842ac7d44e70a5edb0e (diff) | |
Merge pull request #2917 from Sonicadvance1/android_fix_sgs6
[Android] Workaround Mali driver issue on the Samsung Galaxy S6.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/GLInterface/EGL.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/GLInterface/EGL.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/GLInterface/EGL.cpp b/Source/Core/VideoBackends/OGL/GLInterface/EGL.cpp index 1adbfb06c6..6020be1eaa 100644 --- a/Source/Core/VideoBackends/OGL/GLInterface/EGL.cpp +++ b/Source/Core/VideoBackends/OGL/GLInterface/EGL.cpp @@ -4,6 +4,7 @@ #include "VideoBackends/OGL/GLInterfaceBase.h" #include "VideoBackends/OGL/GLInterface/EGL.h" +#include "VideoCommon/DriverDetails.h" #include "VideoCommon/RenderBase.h" // Show the current FPS @@ -13,7 +14,8 @@ void cInterfaceEGL::Swap() } void cInterfaceEGL::SwapInterval(int Interval) { - eglSwapInterval(egl_dpy, Interval); + if (!DriverDetails::HasBug(DriverDetails::BUG_BROKENVSYNC)) + eglSwapInterval(egl_dpy, Interval); } void* cInterfaceEGL::GetFuncAddress(const std::string& name) |
