[core] move HeadlessBackend extension initialization code into Impl

This commit is contained in:
Konstantin Käfer
2017-11-27 17:25:20 +01:00
parent 335f04f7e1
commit 2eec5a1980
20 changed files with 117 additions and 120 deletions

View File

@@ -16,7 +16,7 @@ gl::Context& RendererBackend::getContext() {
context = std::make_unique<gl::Context>();
context->enableDebugging();
context->initializeExtensions(
std::bind(&RendererBackend::initializeExtension, this, std::placeholders::_1));
std::bind(&RendererBackend::getExtensionFunctionPointer, this, std::placeholders::_1));
});
return *context;
}