diff options
author | davilla <davilla@4pi.com> | 2013-02-27 11:10:16 -0500 |
---|---|---|
committer | davilla <davilla@4pi.com> | 2013-02-27 11:20:25 -0500 |
commit | 8d2e0fe0d3cd5592765910de545ff471c90cea8c (patch) | |
tree | f94a422925e710ea17bc92c61136796fc7a63bd0 | |
parent | 5dc103016f8576f7c856937b08f0153847f62517 (diff) |
[gles] fixed, m_iVSyncMode var in two places with different type, opps. pick one, pleaseGotham_alpha1
-rw-r--r-- | xbmc/windowing/egl/WinSystemEGL.cpp | 9 | ||||
-rw-r--r-- | xbmc/windowing/egl/WinSystemEGL.h | 1 |
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; }; |