Skip to content

Commit 92fecf6

Browse files
Merge pull request #17827 from white-axe/emscripten-webgl-get-proc-address
2 parents b2a5e97 + 1a5eb6e commit 92fecf6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

gfx/drivers_context/emscriptenwebgl_ctx.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,11 @@ static uint32_t gfx_ctx_emscripten_webgl_get_flags(void *data)
239239

240240
static void gfx_ctx_emscripten_webgl_set_flags(void *data, uint32_t flags) { }
241241

242+
static gfx_ctx_proc_t gfx_ctx_emscripten_webgl_get_proc_address(const char *symbol)
243+
{
244+
return emscripten_webgl_get_proc_address(symbol);
245+
}
246+
242247
const gfx_ctx_driver_t gfx_ctx_emscripten_webgl = {
243248
gfx_ctx_emscripten_webgl_init,
244249
gfx_ctx_emscripten_webgl_destroy,
@@ -261,7 +266,7 @@ const gfx_ctx_driver_t gfx_ctx_emscripten_webgl = {
261266
false,
262267
gfx_ctx_emscripten_webgl_swap_buffers,
263268
gfx_ctx_emscripten_webgl_input_driver,
264-
NULL,
269+
gfx_ctx_emscripten_webgl_get_proc_address,
265270
NULL,
266271
NULL,
267272
NULL,

0 commit comments

Comments
 (0)