Skip to content

Commit 8d2e0fe

Browse files
committed
[gles] fixed, m_iVSyncMode var in two places with different type, opps. pick one, please
1 parent 5dc1030 commit 8d2e0fe

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

xbmc/windowing/egl/WinSystemEGL.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ CWinSystemEGL::CWinSystemEGL() : CWinSystemBase()
4343
m_config = NULL;
4444

4545
m_egl = NULL;
46-
m_iVSyncMode = false;
46+
m_iVSyncMode = 0;
4747
}
4848

4949
CWinSystemEGL::~CWinSystemEGL()
@@ -384,9 +384,12 @@ bool CWinSystemEGL::PresentRenderImpl(const CDirtyRegionList &dirty)
384384

385385
void CWinSystemEGL::SetVSyncImpl(bool enable)
386386
{
387-
m_iVSyncMode = enable;
388-
if (!m_egl->SetVSync(m_display, m_iVSyncMode))
387+
m_iVSyncMode = enable ? 10:0;
388+
if (!m_egl->SetVSync(m_display, enable))
389+
{
390+
m_iVSyncMode = 0;
389391
CLog::Log(LOGERROR, "%s,Could not set egl vsync", __FUNCTION__);
392+
}
390393
}
391394

392395
void CWinSystemEGL::ShowOSMouse(bool show)

xbmc/windowing/egl/WinSystemEGL.h

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ class CWinSystemEGL : public CWinSystemBase, public CRenderSystemGLES
7575
EGLConfig m_config;
7676

7777
CEGLWrapper *m_egl;
78-
bool m_iVSyncMode;
7978
std::string m_extensions;
8079
};
8180

0 commit comments

Comments
 (0)