Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ui / surface / accelerated_surface_mac.cc
index 5c63de7..8ff8492 100644 (file)
@@ -29,9 +29,8 @@ bool AcceleratedSurface::Initialize(
     gfx::GpuPreference gpu_preference) {
   allocate_fbo_ = allocate_fbo;
 
-  // Ensure GL is initialized before trying to create an offscreen GL context.
-  if (!gfx::GLSurface::InitializeOneOff())
-    return false;
+  // GL should be initialized by content::SupportsCoreAnimationPlugins().
+  DCHECK_NE(gfx::GetGLImplementation(), gfx::kGLImplementationNone);
 
   // Drawing to IOSurfaces via OpenGL only works with Apple's GL and
   // not with the OSMesa software renderer.