From e758dd53dcd90cbd4c3b48b73d689f35b0a08be4 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 10 Sep 2020 15:02:00 -0400 Subject: [PATCH] egl: Make SDL_EGL_HasExtension() available outside of SDL_egl.c. --- src/video/SDL_egl.c | 6 +----- src/video/SDL_egl_c.h | 7 +++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index ba5a758ed..5ea732fbe 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -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; diff --git a/src/video/SDL_egl_c.h b/src/video/SDL_egl_c.h index 0eddfaa15..991344977 100644 --- a/src/video/SDL_egl_c.h +++ b/src/video/SDL_egl_c.h @@ -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.