Skip to content
This repository
Browse code

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

…lay resolutions
  • Loading branch information...
commit 0562c11dc236ed0dbc5a5f078808a9ddf698f7e4 1 parent 49cd92b
authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  xbmc/windowing/egl/WinSystemEGL.cpp
3  xbmc/windowing/egl/WinSystemEGL.cpp
@@ -383,7 +383,8 @@ bool CWinSystemEGL::PresentRenderImpl(const CDirtyRegionList &dirty)
383 383
 
384 384
 void CWinSystemEGL::SetVSyncImpl(bool enable)
385 385
 {
386  
-  if (!m_egl->SetVSync(m_display, enable))
  386
+  m_iVSyncMode = enable;
  387
+  if (!m_egl->SetVSync(m_display, m_iVSyncMode))
387 388
     CLog::Log(LOGERROR, "%s,Could not set egl vsync", __FUNCTION__);
388 389
 }
389 390
 

0 notes on commit 0562c11

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