Skip to content
Browse files

[egl] fixed, remember vsync setting and restore it when changing disp…

…lay resolutions
  • Loading branch information...
1 parent 49cd92b commit 0562c11dc236ed0dbc5a5f078808a9ddf698f7e4 @davilla davilla committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 xbmc/windowing/egl/WinSystemEGL.cpp
3 xbmc/windowing/egl/WinSystemEGL.cpp
@@ -383,7 +383,8 @@ bool CWinSystemEGL::PresentRenderImpl(const CDirtyRegionList &dirty)
void CWinSystemEGL::SetVSyncImpl(bool enable)
- if (!m_egl->SetVSync(m_display, enable))
+ m_iVSyncMode = enable;
+ if (!m_egl->SetVSync(m_display, m_iVSyncMode))
CLog::Log(LOGERROR, "%s,Could not set egl vsync", __FUNCTION__);

0 comments on commit 0562c11

Please sign in to comment.
Something went wrong with that request. Please try again.