Implement `get_proc_address` for emscriptenwebgl_ctx

This commit is contained in:
刘皓 2025-04-23 22:12:10 -04:00
parent b2a5e97923
commit 1a5eb6e8b9
No known key found for this signature in database
GPG Key ID: 7901753DB465B711
1 changed files with 6 additions and 1 deletions

View File

@ -239,6 +239,11 @@ static uint32_t gfx_ctx_emscripten_webgl_get_flags(void *data)
static void gfx_ctx_emscripten_webgl_set_flags(void *data, uint32_t flags) { }
static gfx_ctx_proc_t gfx_ctx_emscripten_webgl_get_proc_address(const char *symbol)
{
return emscripten_webgl_get_proc_address(symbol);
}
const gfx_ctx_driver_t gfx_ctx_emscripten_webgl = {
gfx_ctx_emscripten_webgl_init,
gfx_ctx_emscripten_webgl_destroy,
@ -261,7 +266,7 @@ const gfx_ctx_driver_t gfx_ctx_emscripten_webgl = {
false,
gfx_ctx_emscripten_webgl_swap_buffers,
gfx_ctx_emscripten_webgl_input_driver,
NULL,
gfx_ctx_emscripten_webgl_get_proc_address,
NULL,
NULL,
NULL,