src/video/mir/SDL_miropengl.c
changeset 10690 23a825f341e6
parent 9998 f67cf37e9cd4
child 10737 3406a0f8b041
equal deleted inserted replaced
10689:69d6c1c7a2bf 10690:23a825f341e6
    29 
    29 
    30 #include "SDL_miropengl.h"
    30 #include "SDL_miropengl.h"
    31 
    31 
    32 #include "SDL_mirdyn.h"
    32 #include "SDL_mirdyn.h"
    33 
    33 
    34 void
    34 int
    35 MIR_GL_SwapWindow(_THIS, SDL_Window* window)
    35 MIR_GL_SwapWindow(_THIS, SDL_Window* window)
    36 {
    36 {
    37     MIR_Window* mir_wind = window->driverdata;
    37     MIR_Window* mir_wind = window->driverdata;
    38 
    38 
    39     SDL_EGL_SwapBuffers(_this, mir_wind->egl_surface);
    39     return SDL_EGL_SwapBuffers(_this, mir_wind->egl_surface);
    40 }
    40 }
    41 
    41 
    42 int
    42 int
    43 MIR_GL_MakeCurrent(_THIS, SDL_Window* window, SDL_GLContext context)
    43 MIR_GL_MakeCurrent(_THIS, SDL_Window* window, SDL_GLContext context)
    44 {
    44 {