From 1a5eb6e8b9cb470358d505c48cfcc548d30ab69a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=9A=93?= Date: Wed, 23 Apr 2025 22:12:10 -0400 Subject: [PATCH] Implement `get_proc_address` for emscriptenwebgl_ctx --- gfx/drivers_context/emscriptenwebgl_ctx.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gfx/drivers_context/emscriptenwebgl_ctx.c b/gfx/drivers_context/emscriptenwebgl_ctx.c index 26e5304015..a2e659ba27 100644 --- a/gfx/drivers_context/emscriptenwebgl_ctx.c +++ b/gfx/drivers_context/emscriptenwebgl_ctx.c @@ -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,