aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/windowing/egl/WinSystemEGL.cpp9
-rw-r--r--xbmc/windowing/egl/WinSystemEGL.h1
2 files changed, 6 insertions, 4 deletions
diff --git a/xbmc/windowing/egl/WinSystemEGL.cpp b/xbmc/windowing/egl/WinSystemEGL.cpp
index 0c6fe18080..9773fc4f7b 100644
--- a/xbmc/windowing/egl/WinSystemEGL.cpp
+++ b/xbmc/windowing/egl/WinSystemEGL.cpp
@@ -43,7 +43,7 @@ CWinSystemEGL::CWinSystemEGL() : CWinSystemBase()
m_config = NULL;
m_egl = NULL;
- m_iVSyncMode = false;
+ m_iVSyncMode = 0;
}
CWinSystemEGL::~CWinSystemEGL()
@@ -384,9 +384,12 @@ bool CWinSystemEGL::PresentRenderImpl(const CDirtyRegionList &dirty)
void CWinSystemEGL::SetVSyncImpl(bool enable)
{
- m_iVSyncMode = enable;
- if (!m_egl->SetVSync(m_display, m_iVSyncMode))
+ m_iVSyncMode = enable ? 10:0;
+ if (!m_egl->SetVSync(m_display, enable))
+ {
+ m_iVSyncMode = 0;
CLog::Log(LOGERROR, "%s,Could not set egl vsync", __FUNCTION__);
+ }
}
void CWinSystemEGL::ShowOSMouse(bool show)
diff --git a/xbmc/windowing/egl/WinSystemEGL.h b/xbmc/windowing/egl/WinSystemEGL.h
index 4c10e4b4fc..fd0dc18d5c 100644
--- a/xbmc/windowing/egl/WinSystemEGL.h
+++ b/xbmc/windowing/egl/WinSystemEGL.h
@@ -75,7 +75,6 @@ protected:
EGLConfig m_config;
CEGLWrapper *m_egl;
- bool m_iVSyncMode;
std::string m_extensions;
};