Emscripten: Load eglQueryString and eglGetError
authorCharlie Birks <charlie@daftgames.net>
Sat, 13 Oct 2018 17:18:59 +0100
changeset 1232343cae18a1a34
parent 12322 b5074e5aaa49
child 12326 f8309eaee217
Emscripten: Load eglQueryString and eglGetError
This prevents an assertion on context creation failure (calling a null
function pointer).
src/video/emscripten/SDL_emscriptenopengles.c
     1.1 --- a/src/video/emscripten/SDL_emscriptenopengles.c	Sat Oct 13 03:36:42 2018 -0300
     1.2 +++ b/src/video/emscripten/SDL_emscriptenopengles.c	Sat Oct 13 17:18:59 2018 +0100
     1.3 @@ -60,7 +60,9 @@
     1.4      LOAD_FUNC(eglWaitNative);
     1.5      LOAD_FUNC(eglWaitGL);
     1.6      LOAD_FUNC(eglBindAPI);
     1.7 -    
     1.8 +    LOAD_FUNC(eglQueryString);
     1.9 +    LOAD_FUNC(eglGetError);
    1.10 +
    1.11      _this->egl_data->egl_display = _this->egl_data->eglGetDisplay(EGL_DEFAULT_DISPLAY);
    1.12      if (!_this->egl_data->egl_display) {
    1.13          return SDL_SetError("Could not get EGL display");