Skip to content

Commit

Permalink
[egl] fixed, remember vsync setting and restore it when changing disp…
Browse files Browse the repository at this point in the history
…lay resolutions
  • Loading branch information
davilla committed Nov 19, 2012
1 parent 49cd92b commit 0562c11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/windowing/egl/WinSystemEGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
}

Expand Down

0 comments on commit 0562c11

Please sign in to comment.