-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Description
Steps to reproduce the behavior:
- Init BGFX with init.platformData.context != nullptr
- In GlContext::create m_display won't be set, remains nullptr:
Line 283 in 336cb9f
m_display = eglGetDisplay(NULL == ndt ? EGL_DEFAULT_DISPLAY : ndt); - In GlContext::create m_config won't be set:
Line 356 in 336cb9f
success = eglChooseConfig(m_display, attrs, &m_config, 1, &numConfig); - GlContext::createSwapChain fails, as m_display and m_config are invalid:
Line 582 in 336cb9f
return BX_NEW(g_allocator, SwapChainGL)(m_display, m_config, m_context, (EGLNativeWindowType)_nwh, _width, _height);
Expected behavior
BGFX should work with an externally set context, GlContext's m_display and m_config should contain meaningful data even in these cases.
Metadata
Metadata
Assignees
Labels
No labels