diff --git a/dom/canvas/WebGLContext.cpp b/dom/canvas/WebGLContext.cpp index a6c20490a0c2..aea77730c249 100644 --- a/dom/canvas/WebGLContext.cpp +++ b/dom/canvas/WebGLContext.cpp @@ -570,8 +570,7 @@ CreateHeadlessANGLE(CreateContextFlags flags, const nsCOMPtr& gfxInf nsRefPtr gl; #ifdef XP_WIN - gl = gl::GLContextProviderEGL::CreateHeadless(requireCompatProfile, - forceEnabled); + gl = gl::GLContextProviderEGL::CreateHeadless(flags);, if (!gl) { webgl->GenerateWarning("Error during ANGLE OpenGL init."); return nullptr;