Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[gles] fixed, m_iVSyncMode var in two places with different type, opp…

…s. pick one, please
  • Loading branch information...
commit 8d2e0fe0d3cd5592765910de545ff471c90cea8c 1 parent 5dc1030
@davilla davilla authored
View
9 xbmc/windowing/egl/WinSystemEGL.cpp
@@ -43,7 +43,7 @@ CWinSystemEGL::CWinSystemEGL() : CWinSystemBase()
m_config = NULL;
m_egl = NULL;
- m_iVSyncMode = false;
+ m_iVSyncMode = 0;
}
CWinSystemEGL::~CWinSystemEGL()
@@ -384,9 +384,12 @@ bool CWinSystemEGL::PresentRenderImpl(const CDirtyRegionList &dirty)
void CWinSystemEGL::SetVSyncImpl(bool enable)
{
- m_iVSyncMode = enable;
- if (!m_egl->SetVSync(m_display, m_iVSyncMode))
+ m_iVSyncMode = enable ? 10:0;
+ if (!m_egl->SetVSync(m_display, enable))
+ {
+ m_iVSyncMode = 0;
CLog::Log(LOGERROR, "%s,Could not set egl vsync", __FUNCTION__);
+ }
}
void CWinSystemEGL::ShowOSMouse(bool show)
View
1  xbmc/windowing/egl/WinSystemEGL.h
@@ -75,7 +75,6 @@ class CWinSystemEGL : public CWinSystemBase, public CRenderSystemGLES
EGLConfig m_config;
CEGLWrapper *m_egl;
- bool m_iVSyncMode;
std::string m_extensions;
};
Please sign in to comment.
Something went wrong with that request. Please try again.