Merge pull request #656 from MarioLiebisch/android-nosurface-display
[Android] Don't try to display without a surface
This commit is contained in:
commit
0a64da654c
@ -180,7 +180,8 @@ bool EglContext::makeCurrent()
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
void EglContext::display()
|
void EglContext::display()
|
||||||
{
|
{
|
||||||
eglCheck(eglSwapBuffers(m_display, m_surface));
|
if (m_surface != EGL_NO_SURFACE)
|
||||||
|
eglCheck(eglSwapBuffers(m_display, m_surface));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user