Problem with EGL MakeCurrent

102 views
Skip to first unread message

Александр Трухин

unread,
Jul 20, 2018, 5:50:03 AM7/20/18
to angleproject
Hi, i have an application using Angle. I use EGLWindow with GLES 2.0  and EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE. I have 2 threads main and render, if i call initializeGL (witch create context) in main thread and when try call makeCurrent in render thread it will cause error ERROR_BUSY, because for opengl (like i do in glfw app) i should call glfwMakeContextCurrent(NULL) witch detach current context from main thread. So i try several ways to do the same in Angle but nothing helped me. I try eglMakeCurrent and eglReleaseThread  neither of it help me. Also with D3D platform all work fine. Can anyone help me? or told me what i'm doing wrong. Thanks!

Geoff Lang

unread,
Jul 23, 2018, 10:54:59 AM7/23/18
to mr.re...@gmail.com, angleproject
ANGLE currently does not support multi-threaded usage.  D3D may work but it is not officially supported and you may run into threading issues/undefined behaviour. OpenGL will not work at all for most platforms, but there is an experimental extension which works on Windows and Android currently.

On Fri, Jul 20, 2018 at 5:50 AM Александр Трухин <mr.re...@gmail.com> wrote:
Hi, i have an application using Angle. I use EGLWindow with GLES 2.0  and EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE. I have 2 threads main and render, if i call initializeGL (witch create context) in main thread and when try call makeCurrent in render thread it will cause error ERROR_BUSY, because for opengl (like i do in glfw app) i should call glfwMakeContextCurrent(NULL) witch detach current context from main thread. So i try several ways to do the same in Angle but nothing helped me. I try eglMakeCurrent and eglReleaseThread  neither of it help me. Also with D3D platform all work fine. Can anyone help me? or told me what i'm doing wrong. Thanks!

--
You received this message because you are subscribed to the Google Groups "angleproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angleproject...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages