missing assignment to m_canvas on alloc

This commit is contained in:
Vladimir Vukicevic 2019-06-17 22:39:48 +02:00 committed by Бранимир Караџић
parent 6b8d0c7ba2
commit 7e51b38c3f

View File

@ -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();