Bug 1150944 - Add a flags parameter to GLContextProvider functions instead of a bool. r=jgilbert

This commit is contained in:
Matt Woodrow
2015-07-29 16:35:55 -04:00
parent 25ad02167a
commit f2668193dc
15 changed files with 71 additions and 60 deletions

View File

@@ -92,8 +92,7 @@ static nsRefPtr<GLContext> sPluginContext = nullptr;
static bool EnsureGLContext()
{
if (!sPluginContext) {
bool requireCompatProfile = true;
sPluginContext = GLContextProvider::CreateHeadless(requireCompatProfile);
sPluginContext = GLContextProvider::CreateHeadless(CreateContextFlags::REQUIRE_COMPAT_PROFILE);
}
return sPluginContext != nullptr;