OpenGLRenderer: Fix context not being shared on OpenGL ES

This commit is contained in:
Jérôme Leclercq 2021-01-22 23:17:55 +01:00
parent c76d6505b0
commit dbcb4a61d0
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ namespace Nz::GL
WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_ES_PROFILE_BIT_EXT WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_ES_PROFILE_BIT_EXT
}; };
m_handle = baseContext->wglCreateContextAttribsARB(m_deviceContext, nullptr, attributes.data()); m_handle = baseContext->wglCreateContextAttribsARB(m_deviceContext, (shareContext) ? shareContext->m_handle : nullptr, attributes.data());
if (m_handle) if (m_handle)
break; break;
} }