diff --git a/src/glcontext_egl.cpp b/src/glcontext_egl.cpp index ac6dde988c..1467e287a0 100644 --- a/src/glcontext_egl.cpp +++ b/src/glcontext_egl.cpp @@ -71,6 +71,7 @@ namespace bgfx { namespace gl EGL_IMPORT_FUNC(PFNEGLGETPROCADDRESSPROC, eglGetProcAddress); \ EGL_IMPORT_FUNC(PFNEGLINITIALIZEPROC, eglInitialize); \ EGL_IMPORT_FUNC(PFNEGLMAKECURRENTPROC, eglMakeCurrent); \ + EGL_IMPORT_FUNC(PFNEGLRELEASETHREADPROC, eglReleaseThread); \ EGL_IMPORT_FUNC(PFNEGLSWAPBUFFERSPROC, eglSwapBuffers); \ EGL_IMPORT_FUNC(PFNEGLSWAPINTERVALPROC, eglSwapInterval); \ EGL_IMPORT_FUNC(PFNEGLTERMINATEPROC, eglTerminate); \ @@ -433,6 +434,7 @@ EGL_IMPORT m_context = NULL; } + EGL_CHECK(eglReleaseThread() ); eglClose(m_eglLibrary); # if BX_PLATFORM_RPI