src/video/raspberry/SDL_rpiopengles.c
changeset 11444 38f181f81476
parent 11175 cbc6a8a5b701
child 11694 2ce56475ad57
equal deleted inserted replaced
11443:a15af5a487a1 11444:38f181f81476
    25 #include "SDL_rpivideo.h"
    25 #include "SDL_rpivideo.h"
    26 #include "SDL_rpiopengles.h"
    26 #include "SDL_rpiopengles.h"
    27 
    27 
    28 /* EGL implementation of SDL OpenGL support */
    28 /* EGL implementation of SDL OpenGL support */
    29 
    29 
       
    30 void
       
    31 RPI_GLES_DefaultProfileConfig(_THIS, int *mask, int *major, int *minor)
       
    32 {
       
    33     *mask = SDL_GL_CONTEXT_PROFILE_ES;
       
    34     *major = 2;
       
    35     *minor = 0;
       
    36 }
       
    37 
    30 int
    38 int
    31 RPI_GLES_LoadLibrary(_THIS, const char *path) {
    39 RPI_GLES_LoadLibrary(_THIS, const char *path) {
    32     return SDL_EGL_LoadLibrary(_this, path, EGL_DEFAULT_DISPLAY, 0);
    40     return SDL_EGL_LoadLibrary(_this, path, EGL_DEFAULT_DISPLAY, 0);
    33 }
    41 }
    34 
    42