void TopCanvas::Flip() { #ifdef HAVE_EGL if (OpenGL::egl) { /* if native EGL support was detected, we can circumvent the JNI call */ EGLSwapBuffers(); return; } #endif #ifdef ANDROID native_view->swap(); #elif defined(ENABLE_OPENGL) ::SDL_GL_SwapBuffers(); #else ::SDL_Flip(surface); #endif }
void sreBackendGLES2X11::GLSwapBuffers() { EGLSwapBuffers(); }
void sreBackendGLES2RPIFB::GLSwapBuffers() { EGLSwapBuffers(); }