Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #4276 from koying/fixvsyncdriver

FIX: [gles] do not force vsync off if VSYNC_DRIVER
  • Loading branch information...
commit f2646d961f413251cd5e5a112fe676e643798bf3 2 parents d5fa138 + d30bd26
@jmarshallnz jmarshallnz authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 xbmc/windowing/egl/WinSystemEGL.cpp
View
8 xbmc/windowing/egl/WinSystemEGL.cpp
@@ -306,7 +306,9 @@ bool CWinSystemEGL::DestroyWindow()
bool CWinSystemEGL::ResizeWindow(int newWidth, int newHeight, int newLeft, int newTop)
{
CRenderSystemGLES::ResetRenderSystem(newWidth, newHeight, true, 0);
- SetVSyncImpl(m_iVSyncMode);
+ int vsync_mode = CSettings::Get().GetInt("videoscreen.vsync");
+ if (vsync_mode != VSYNC_DRIVER)
+ SetVSyncImpl(m_iVSyncMode);
return true;
}
@@ -314,7 +316,9 @@ bool CWinSystemEGL::SetFullScreen(bool fullScreen, RESOLUTION_INFO& res, bool bl
{
CreateNewWindow("", fullScreen, res, NULL);
CRenderSystemGLES::ResetRenderSystem(res.iWidth, res.iHeight, fullScreen, res.fRefreshRate);
- SetVSyncImpl(m_iVSyncMode);
+ int vsync_mode = CSettings::Get().GetInt("videoscreen.vsync");
+ if (vsync_mode != VSYNC_DRIVER)
+ SetVSyncImpl(m_iVSyncMode);
return true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.