Added ability to expose internal data (D3D device/GL context).

This commit is contained in:
Branimir Karadžić
2016-01-13 21:18:59 -08:00
parent 066c4fb3e3
commit 72be9be87d
13 changed files with 62 additions and 15 deletions

View File

@@ -211,6 +211,8 @@ namespace bgfx { namespace gl
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
glXSwapBuffers( (::Display*)g_platformData.ndt, (::Window)g_platformData.nwh);
g_internalData.context = m_context;
}
void GlContext::destroy()