diff --git a/engine/src/flutter/shell/gpu/gpu_surface_gl.cc b/engine/src/flutter/shell/gpu/gpu_surface_gl.cc index 92cfd25f19..ee28c97f79 100644 --- a/engine/src/flutter/shell/gpu/gpu_surface_gl.cc +++ b/engine/src/flutter/shell/gpu/gpu_surface_gl.cc @@ -33,8 +33,11 @@ GPUSurfaceGL::GPUSurfaceGL(GPUSurfaceGLDelegate* delegate) auto backend_context = reinterpret_cast(GrGLCreateNativeInterface()); - auto context = - sk_sp(GrContext::Create(kOpenGL_GrBackend, backend_context)); + GrContextOptions options; + options.fAvoidStencilBuffers = true; + + auto context = sk_sp( + GrContext::Create(kOpenGL_GrBackend, backend_context, options)); if (context == nullptr) { FXL_LOG(ERROR) << "Failed to setup Skia Gr context.";