emscripten-core/emscripten

missing informative way of extracting WebGL context creation failures

オープン

#12,355 opened on 2020/09/28

 (3 件のコメント) (1 件のリアクション) (0 人の担当者)C++ (3,519 件のフォーク)batch import
help wantedwontfix

Repository metrics

Stars
 (27,361 個のスター)
PR merge metrics
 (平均マージ 19d 10h) (30d で 147 merged PRs)

説明

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.

コントリビューターガイド