Disable EGL in Emscripten builds

This commit is contained in:
Cameron Cawley authored and Sam Lantinga committed 2025-04-09 12:37:03 -07:00
1 parent f303ccca64
commit b0860fb0c2
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -258,7 +258,7 @@ SDL_FunctionPointer SDL_EGL_GetProcAddressInternal(SDL_VideoDevice *_this, const
result = _this->egl_data->eglGetProcAddress(proc);
}
#if !defined(SDL_PLATFORM_EMSCRIPTEN) && !defined(SDL_VIDEO_DRIVER_VITA) // LoadFunction isn't needed on Emscripten and will call dlsym(), causing other problems.
#if !defined(SDL_VIDEO_DRIVER_VITA)
// Try SDL_LoadFunction() first for EGL <= 1.4, or as a fallback for >= 1.5.
if (!result) {
result = SDL_LoadFunction(_this->egl_data->opengl_dll_handle, proc);