mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-02-24 23:06:50 +00:00
Emscripten: Load eglQueryString and eglGetError
This prevents an assertion on context creation failure (calling a null function pointer).
This commit is contained in:
parent
8c41e2624e
commit
cd63709ed8
|
@ -60,7 +60,9 @@ Emscripten_GLES_LoadLibrary(_THIS, const char *path) {
|
||||||
LOAD_FUNC(eglWaitNative);
|
LOAD_FUNC(eglWaitNative);
|
||||||
LOAD_FUNC(eglWaitGL);
|
LOAD_FUNC(eglWaitGL);
|
||||||
LOAD_FUNC(eglBindAPI);
|
LOAD_FUNC(eglBindAPI);
|
||||||
|
LOAD_FUNC(eglQueryString);
|
||||||
|
LOAD_FUNC(eglGetError);
|
||||||
|
|
||||||
_this->egl_data->egl_display = _this->egl_data->eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
_this->egl_data->egl_display = _this->egl_data->eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||||
if (!_this->egl_data->egl_display) {
|
if (!_this->egl_data->egl_display) {
|
||||||
return SDL_SetError("Could not get EGL display");
|
return SDL_SetError("Could not get EGL display");
|
||||||
|
|
Loading…
Reference in a new issue