emscripten-core/emscripten

missing informative way of extracting WebGL context creation failures

Open

#12 355 ouverte le 28 sept. 2020

Voir sur GitHub
 (3 commentaires) (1 réaction) (0 assignés)C++ (3 519 forks)batch import
help wantedwontfix

Métriques du dépôt

Stars
 (27 361 stars)
Métriques de merge PR
 (Merge moyen 19j 10h) (147 PRs mergées en 30 j)

Description

as discussed here, today the only information that emscripten returns about WebGL context creation failures appears in logs, if the GL_DEBUG or ASSERTIONS flags are set during the build process. There's no programatic way of receiving the source of failure in GL.createContext or emscripten_webgl_create_context, which means that these failures can't be handled in real time, and any logs must be extracted from the console - both of which are problematic when shipping code for production. Something like the proposed emscripten_webgl_create_context_ex should be created, preferably with the ability to extract error information from also from the internal call to GL.createContext.

Guide contributeur