src/video/wayland/SDL_waylandopengles.c
changeset 8104 2e4f1bd21196
parent 8062 4fc5f66d63cc
child 8149 681eb46b8ac4
     1.1 --- a/src/video/wayland/SDL_waylandopengles.c	Wed Jan 08 14:53:08 2014 -0500
     1.2 +++ b/src/video/wayland/SDL_waylandopengles.c	Thu Jan 09 13:56:21 2014 -0300
     1.3 @@ -18,7 +18,7 @@
     1.4       misrepresented as being the original software.
     1.5    3. This notice may not be removed or altered from any source distribution.
     1.6  */
     1.7 -#include "SDL_config.h"
     1.8 +#include "../../SDL_internal.h"
     1.9  
    1.10  #if SDL_VIDEO_DRIVER_WAYLAND && SDL_VIDEO_OPENGL_EGL
    1.11  
    1.12 @@ -26,6 +26,7 @@
    1.13  #include "SDL_waylandopengles.h"
    1.14  #include "SDL_waylandwindow.h"
    1.15  #include "SDL_waylandevents_c.h"
    1.16 +#include "SDL_waylanddyn.h"
    1.17  
    1.18  /* EGL implementation of SDL OpenGL ES support */
    1.19  
    1.20 @@ -37,7 +38,7 @@
    1.21      ret = SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType) data->display);
    1.22  
    1.23      Wayland_PumpEvents(_this);
    1.24 -    wayland_schedule_write(data);
    1.25 +    WAYLAND_wl_display_flush(data->display);
    1.26      
    1.27      return ret;
    1.28  }
    1.29 @@ -48,7 +49,7 @@
    1.30  {
    1.31      SDL_GLContext context;
    1.32      context = SDL_EGL_CreateContext(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);
    1.33 -    wayland_schedule_write(_this->driverdata);
    1.34 +    WAYLAND_wl_display_flush( ((SDL_VideoData*)_this->driverdata)->display );
    1.35      
    1.36      return context;
    1.37  }
    1.38 @@ -57,7 +58,7 @@
    1.39  Wayland_GLES_SwapWindow(_THIS, SDL_Window *window)
    1.40  {
    1.41      SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);
    1.42 -    wayland_schedule_write(_this->driverdata);
    1.43 +    WAYLAND_wl_display_flush( ((SDL_VideoData*)_this->driverdata)->display );
    1.44  }
    1.45  
    1.46  
    1.47 @@ -73,7 +74,7 @@
    1.48          ret = SDL_EGL_MakeCurrent(_this, NULL, NULL);
    1.49      }
    1.50      
    1.51 -    wayland_schedule_write(_this->driverdata);
    1.52 +    WAYLAND_wl_display_flush( ((SDL_VideoData*)_this->driverdata)->display );
    1.53      
    1.54      return ret;
    1.55  }
    1.56 @@ -82,7 +83,7 @@
    1.57  Wayland_GLES_DeleteContext(_THIS, SDL_GLContext context)
    1.58  {
    1.59      SDL_EGL_DeleteContext(_this, context);
    1.60 -    wayland_schedule_write(_this->driverdata);
    1.61 +    WAYLAND_wl_display_flush( ((SDL_VideoData*)_this->driverdata)->display );
    1.62  }
    1.63  
    1.64  #endif /* SDL_VIDEO_DRIVER_WAYLAND && SDL_VIDEO_OPENGL_EGL */