From 8c18906d970f0aede2f848066106372c91f233cc Mon Sep 17 00:00:00 2001 From: "C.Even" Date: Fri, 20 Nov 2020 23:23:07 +0800 Subject: [PATCH] Use emscripten_webgl2_get_proc_address for WebGL2 context (#2316) --- src/glcontext_html5.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glcontext_html5.cpp b/src/glcontext_html5.cpp index 78d141bcb..90798bdc4 100644 --- a/src/glcontext_html5.cpp +++ b/src/glcontext_html5.cpp @@ -134,7 +134,7 @@ namespace bgfx { namespace gl SwapChainGL* swapChain = BX_NEW(g_allocator, SwapChainGL)(context, canvas); - import(1); + import(version); return swapChain; }