Mercurial > MadButterfly
diff src/graph_engine_openvg.c @ 1114:7451af5d63ec
Make tank and calculator works for console backend
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 08 Dec 2010 22:39:12 +0800 |
parents | 851a062368bd |
children | 20e15872f3df |
line wrap: on
line diff
--- a/src/graph_engine_openvg.c Wed Dec 08 19:47:25 2010 +0800 +++ b/src/graph_engine_openvg.c Wed Dec 08 22:39:12 2010 +0800 @@ -675,6 +675,17 @@ eglSwapBuffers(display, VG_MBE_SURFACE(dst_canvas)); } +void +mbe_flush(mbe_t *canvas) { + EGLDisplay display; + mbe_surface_t *surface; + + _MK_CURRENT_CTX(canvas); + display = _VG_DISPLAY(); + surface = VG_MBE_SURFACE(canvas); + eglSwapBuffers(display, surface); +} + mbe_t * mbe_create(mbe_surface_t *surface) { EGLDisplay display;