OpenGLHostDisplay: Update sync interval on MakeCurrent()

This commit is contained in:
Connor McLaughlin
2022-12-08 13:17:20 +10:00
parent 9d23df3aba
commit dfdbc9a8ce
10 changed files with 29 additions and 2 deletions

View File

@ -133,6 +133,11 @@ bool ContextEGL::SwapBuffers()
return eglSwapBuffers(m_display, m_surface);
}
bool ContextEGL::IsCurrent()
{
return m_context && eglGetCurrentContext() == m_context;
}
bool ContextEGL::MakeCurrent()
{
if (!eglMakeCurrent(m_display, m_surface, m_surface, m_context))