Navigation Menu

Skip to content

Commit

Permalink
egl: Make SDL_EGL_HasExtension() available outside of SDL_egl.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 10, 2020
1 parent 055cad4 commit e758dd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/video/SDL_egl.c
Expand Up @@ -152,12 +152,8 @@ int SDL_EGL_SetErrorEx(const char * message, const char * eglFunctionName, EGLin
}

/* EGL implementation of SDL OpenGL ES support */
typedef enum {
SDL_EGL_DISPLAY_EXTENSION,
SDL_EGL_CLIENT_EXTENSION
} SDL_EGL_ExtensionType;

static SDL_bool SDL_EGL_HasExtension(_THIS, SDL_EGL_ExtensionType type, const char *ext)
SDL_bool SDL_EGL_HasExtension(_THIS, SDL_EGL_ExtensionType type, const char *ext)
{
size_t ext_len;
const char *ext_override;
Expand Down
7 changes: 7 additions & 0 deletions src/video/SDL_egl_c.h
Expand Up @@ -122,6 +122,13 @@ typedef struct SDL_EGL_VideoData
} SDL_EGL_VideoData;

/* OpenGLES functions */
typedef enum SDL_EGL_ExtensionType {
SDL_EGL_DISPLAY_EXTENSION,
SDL_EGL_CLIENT_EXTENSION
} SDL_EGL_ExtensionType;

extern SDL_bool SDL_EGL_HasExtension(_THIS, SDL_EGL_ExtensionType type, const char *ext);

extern int SDL_EGL_GetAttribute(_THIS, SDL_GLattr attrib, int *value);
/* SDL_EGL_LoadLibrary can get a display for a specific platform (EGL_PLATFORM_*)
* or, if 0 is passed, let the implementation decide.
Expand Down

0 comments on commit e758dd5

Please sign in to comment.