diff --git a/CefSharp.MinimalExample.OffScreen/Program.cs b/CefSharp.MinimalExample.OffScreen/Program.cs index 8ef4e8a..24c6e3f 100644 --- a/CefSharp.MinimalExample.OffScreen/Program.cs +++ b/CefSharp.MinimalExample.OffScreen/Program.cs @@ -23,18 +23,8 @@ namespace CefSharp.MinimalExample.OffScreen Console.WriteLine("You may see Chromium debugging output, please wait..."); Console.WriteLine(); - var settings = new CefSettings(); - - var osVersion = Environment.OSVersion; - //Disable GPU for Windows 7 - if (osVersion.Version.Major == 6 && osVersion.Version.Minor == 1) - { - // Disable GPU in WPF and Offscreen examples until #1634 has been resolved - settings.CefCommandLineArgs.Add("disable-gpu", "1"); - } - //Perform dependency check to make sure all relevant resources are in our output directory. - Cef.Initialize(settings, performDependencyCheck: true, browserProcessHandler:null); + Cef.Initialize(new CefSettings(), performDependencyCheck: true, browserProcessHandler:null); // Create the offscreen Chromium browser. browser = new ChromiumWebBrowser(testUrl); diff --git a/CefSharp.MinimalExample.Wpf/App.xaml.cs b/CefSharp.MinimalExample.Wpf/App.xaml.cs index 233f32c..2f38d37 100644 --- a/CefSharp.MinimalExample.Wpf/App.xaml.cs +++ b/CefSharp.MinimalExample.Wpf/App.xaml.cs @@ -11,14 +11,6 @@ namespace CefSharp.MinimalExample.Wpf var settings = new CefSettings(); settings.EnableInternalPdfViewerOffScreen(); - var osVersion = Environment.OSVersion; - //Disable GPU for Windows 7 - if (osVersion.Version.Major == 6 && osVersion.Version.Minor == 1) - { - // Disable GPU in WPF and Offscreen examples until #1634 has been resolved - settings.CefCommandLineArgs.Add("disable-gpu", "1"); - } - Cef.Initialize(settings, performDependencyCheck: true, browserProcessHandler: null); } }