# HG changeset patch # User Thinker K.F. Li # Date 1277862742 -28800 # Node ID 6af1aa74e57c7bf6cb6e08b0b96c407e72c7e4d6 # Parent 543a2a8523fb6f8b5be2984fc9dd83aaece407c1 Rename to mbe_vg_win_surface_create() and matching EGL display diff -r 543a2a8523fb -r 6af1aa74e57c include/mb_graph_engine_openvg.h --- a/include/mb_graph_engine_openvg.h Wed Jun 30 09:44:17 2010 +0800 +++ b/include/mb_graph_engine_openvg.h Wed Jun 30 09:52:22 2010 +0800 @@ -263,8 +263,8 @@ * This function is compiled only for GLX enabled. */ static mbe_surface_t * -mbe_xlib_surface_create(Display *display, Drawable drawable, - Visual *visual, int width, int height) { +mbe_vg_win_surface_create(Display *display, Drawable drawable, + Visual *visual, int width, int height) { EGLDisplay egl_disp; EGLSurface egl_surface; mbe_surface_t *surface; @@ -282,7 +282,7 @@ return NULL; egl_disp = eglGetDisplay(display); - if(egl_disp == EGL_NO_DISPLAY) + if(egl_disp == EGL_NO_DISPLAY || egl_disp != _VG_DISPLAY()) return NULL; egl_surface = eglCreateWindowSurface(egl_disp, config, drawable,