Commit
…s. pick one, please
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
theuni
Contributor
|
||
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) | ||
|
Is 10 intentional?