emscripten-core/emscripten

missing informative way of extracting WebGL context creation failures

Open

#12.355 geöffnet am 28. Sept. 2020

Auf GitHub ansehen
 (3 Kommentare) (1 Reaktion) (0 zugewiesene Personen)C++ (3.519 Forks)batch import
help wantedwontfix

Repository-Metriken

Stars
 (27.361 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 19T 10h) (147 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide