Replies: 1 comment
-
Closing this: this was an issue on my side (a context had already been created on the JavaScript side so that the creation failed on the C++ side). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm trying to port a C++ library to pyodide. This library use WebGL2 + SDL2 and already works with emscripten (demo). For info, pyodide is a python distribution for the browser.
In this context I'm trying to reproduce what worked when building the library for Emscripten. However, I encountered an issue with the following lines:
SDL_GL_CreateContext
will fail with the message:Could not create EGL context (call to eglCreateContext failed, reporting an error of EGL_BAD_CONFIG)
. This error comes probably from this line in the emscripten repository.I'm compiling with the flags
-sUSE_SDL=2 -lSDL2 -sMAX_WEBGL_VERSION=2
(to which I tried to add-sMIN_WEBGL_VERSION=2
)I reported this issue to the pyodide team here.
However, it seems that the error is raised deep in the emscripten code. If someone has some time to invest on this question, I would be very grateful! (I would just need a clue that points me to the right direction)
Notes:
Inside the HTML page that is launched by pyodide, one can see this code:
Beta Was this translation helpful? Give feedback.
All reactions