summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/src/glcontext_html5.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/src/glcontext_html5.cpp')
-rw-r--r--3rdparty/bgfx/src/glcontext_html5.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/3rdparty/bgfx/src/glcontext_html5.cpp b/3rdparty/bgfx/src/glcontext_html5.cpp
index db1dbf1d230..016b7c189b3 100644
--- a/3rdparty/bgfx/src/glcontext_html5.cpp
+++ b/3rdparty/bgfx/src/glcontext_html5.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright 2011-2023 Branimir Karadzic. All rights reserved.
+ * Copyright 2011-2022 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
*/
@@ -31,7 +31,7 @@ namespace bgfx { namespace gl
SwapChainGL(int _context, const char* _canvas)
: m_context(_context)
{
- m_canvas = (char*)bx::alloc(g_allocator, strlen(_canvas) + 1);
+ m_canvas = (char*)BX_ALLOC(g_allocator, strlen(_canvas) + 1);
strcpy(m_canvas, _canvas);
makeCurrent();
@@ -45,7 +45,7 @@ namespace bgfx { namespace gl
~SwapChainGL()
{
EMSCRIPTEN_CHECK(emscripten_webgl_destroy_context(m_context) );
- bx::free(g_allocator, m_canvas);
+ BX_FREE(g_allocator, m_canvas);
}
void makeCurrent()
@@ -107,7 +107,7 @@ namespace bgfx { namespace gl
m_current = NULL;
}
- bx::deleteObject(g_allocator, m_primary);
+ BX_DELETE(g_allocator, m_primary);
m_primary = NULL;
}
}
@@ -171,7 +171,7 @@ namespace bgfx { namespace gl
void GlContext::destroySwapChain(SwapChainGL* _swapChain)
{
- bx::deleteObject(g_allocator, _swapChain);
+ BX_DELETE(g_allocator, _swapChain);
}
void GlContext::swap(SwapChainGL* /* _swapChain */)