Merge pull request #656 from MarioLiebisch/android-nosurface-display

[Android] Don't try to display without a surface
This commit is contained in:
Jonathan De Wachter 2014-07-08 18:03:42 +02:00
commit 0a64da654c

View File

@ -180,6 +180,7 @@ bool EglContext::makeCurrent()
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void EglContext::display() void EglContext::display()
{ {
if (m_surface != EGL_NO_SURFACE)
eglCheck(eglSwapBuffers(m_display, m_surface)); eglCheck(eglSwapBuffers(m_display, m_surface));
} }