Reimplement context selection for linux

This commit is contained in:
2016-02-15 09:53:54 -08:00
parent 8ce4e6ffd3
commit c82815c476
2 changed files with 68 additions and 7 deletions

View File

@@ -824,6 +824,9 @@ struct GLCommandQueue : IGraphicsCommandQueue
self->m_parent->makeCurrent();
if (glewInit() != GLEW_OK)
Log.report(LogVisor::FatalError, "unable to init glew");
const GLubyte* version = glGetString(GL_VERSION);
SystemString v(reinterpret_cast<const char*>(version));
Log.report(LogVisor::Info, _S("OpenGL Version: %s"), v.c_str());
self->m_parent->postInit();
}
self->m_initcv.notify_one();