diff --git a/MatterControlApplication.cs b/MatterControlApplication.cs
index 9d727be3d..182b27d30 100644
--- a/MatterControlApplication.cs
+++ b/MatterControlApplication.cs
@@ -134,8 +134,6 @@ namespace MatterHackers.MatterControl
this.commandLineArgs = Environment.GetCommandLineArgs();
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
- bool forceSofwareRendering = false;
-
for (int currentCommandIndex = 0; currentCommandIndex < commandLineArgs.Length; currentCommandIndex++)
{
string command = commandLineArgs[currentCommandIndex];
@@ -143,8 +141,7 @@ namespace MatterHackers.MatterControl
switch (commandUpper)
{
case "FORCE_SOFTWARE_RENDERING":
- forceSofwareRendering = true;
- GL.ForceSoftwareRendering();
+ GL.HardwareAvailable = false;
break;
case "CLEAR_CACHE":
@@ -288,7 +285,7 @@ namespace MatterHackers.MatterControl
#endif
this.AnchorAll();
- if (!forceSofwareRendering)
+ if (GL.HardwareAvailable)
{
UseOpenGL = true;
}
diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp
index f1738f968..5166299f1 160000
--- a/Submodules/agg-sharp
+++ b/Submodules/agg-sharp
@@ -1 +1 @@
-Subproject commit f1738f9683e01f0add7216c00ad7ec169bb4f2fa
+Subproject commit 5166299f18f51cf49d507697f9dd6294db50246c
diff --git a/Tests/MatterControl.AutomationTests/MatterControl.AutomationTests.csproj b/Tests/MatterControl.AutomationTests/MatterControl.AutomationTests.csproj
index dc2befa7f..93673cc18 100644
--- a/Tests/MatterControl.AutomationTests/MatterControl.AutomationTests.csproj
+++ b/Tests/MatterControl.AutomationTests/MatterControl.AutomationTests.csproj
@@ -105,6 +105,10 @@
{86f6aaf2-9b50-40b8-a427-1897d76471c5}
PolygonMesh
+
+ {545B6912-77FF-4B34-BA76-6C3D6A32BE6A}
+ RenderOpenGl
+
{195cbe56-e654-437b-ab05-3be1b9452497}
Agg.Tests
diff --git a/Tests/MatterControl.Tests/MatterControl.Tests.csproj b/Tests/MatterControl.Tests/MatterControl.Tests.csproj
index 4529242f0..5934f2c42 100644
--- a/Tests/MatterControl.Tests/MatterControl.Tests.csproj
+++ b/Tests/MatterControl.Tests/MatterControl.Tests.csproj
@@ -143,6 +143,10 @@
{86F6AAF2-9B50-40B8-A427-1897D76471C5}
PolygonMesh
+
+ {545b6912-77ff-4b34-ba76-6c3d6a32be6a}
+ RenderOpenGl
+
{195CBE56-E654-437B-AB05-3BE1B9452497}
Agg.Tests
diff --git a/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs b/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs
index 5d56c5413..01d776602 100644
--- a/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs
+++ b/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs
@@ -39,11 +39,11 @@ using MatterHackers.Agg;
using MatterHackers.Agg.Image;
using MatterHackers.Agg.PlatformAbstract;
using MatterHackers.Agg.UI;
-using MatterHackers.Agg.UI.Tests;
using MatterHackers.GuiAutomation;
using MatterHackers.MatterControl.DataStorage;
using MatterHackers.MatterControl.PrintLibrary.Provider;
using MatterHackers.MatterControl.SlicerConfiguration;
+using MatterHackers.RenderOpenGl.OpenGl;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using NUnit.Framework;
@@ -391,6 +391,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
}
UserSettings.Instance.set(UserSettingsKey.ThumbnailRenderingMode, "orthographic");
+ GL.HardwareAvailable = false;
MatterControlApplication matterControlWindow = MatterControlApplication.CreateInstance(overrideWidth, overrideHeight);
var config = TestAutomationConfig.Load();