From fa826a4935a84fdb33fc2ea53d64d14390184914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Wed, 16 Sep 2020 09:11:15 -0700 Subject: [PATCH] Fixed webgl build. --- src/glcontext_html5.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/glcontext_html5.cpp b/src/glcontext_html5.cpp index 3a6475e6a..fa169115d 100644 --- a/src/glcontext_html5.cpp +++ b/src/glcontext_html5.cpp @@ -183,21 +183,21 @@ namespace bgfx { namespace gl { BX_TRACE("Import:"); -# define GL_EXTENSION(_optional, _proto, _func, _import) \ - { \ - if (NULL == _func) \ - { \ - _func = (_proto)emscripten_webgl1_get_proc_address(#_import); \ - if (!_func && webGLVersion >= 2) \ - { \ - _func = reinterpret_cast<_proto>(emscripten_webgl2_get_proc_address(#_import); \ - } \ - BX_TRACE("\t%p " #_func " (" #_import ")", _func); \ - BGFX_FATAL(_optional || NULL != _func, Fatal::UnableToInitialize \ - , "Failed to create WebGL/OpenGLES context. GetProcAddress(\"%s\")" \ - , #_import \ - ); \ - } \ +# define GL_EXTENSION(_optional, _proto, _func, _import) \ + { \ + if (NULL == _func) \ + { \ + _func = (_proto)emscripten_webgl1_get_proc_address(#_import); \ + if (!_func && webGLVersion >= 2) \ + { \ + _func = reinterpret_cast<_proto>(emscripten_webgl2_get_proc_address(#_import); \ + } \ + BX_TRACE("\t%p " #_func " (" #_import ")", _func); \ + BGFX_FATAL(_optional || NULL != _func, Fatal::UnableToInitialize \ + , "Failed to create WebGL/OpenGLES context. GetProcAddress(\"%s\")" \ + , #_import \ + ); \ + } \ } # include "glimports.h"