missing assignment to m_canvas on alloc
This commit is contained in:
parent
6b8d0c7ba2
commit
7e51b38c3f
@ -32,7 +32,7 @@ namespace bgfx { namespace gl
|
||||
SwapChainGL(int _context, const char* _canvas)
|
||||
: m_context(_context)
|
||||
{
|
||||
BX_ALLOC(g_allocator, strlen(_canvas) + 1);
|
||||
m_canvas = (char*)BX_ALLOC(g_allocator, strlen(_canvas) + 1);
|
||||
strcpy(m_canvas, _canvas);
|
||||
|
||||
makeCurrent();
|
||||
|
Loading…
Reference in New Issue
Block a user