Browse Source

Fix enabling tests shell in unit tests

Michael Ragazzon 1 year ago
parent
commit
90b3322931
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Tests/Source/Common/TestsShell.cpp

+ 2 - 2
Tests/Source/Common/TestsShell.cpp

@@ -168,10 +168,10 @@ void TestsShell::ShutdownShell()
 
 	Rml::Shutdown();
 
-	shell_render_interface.Reset();
-
 #ifdef RMLUI_TESTS_USE_SHELL
 	Backend::Shutdown();
+#else
+	shell_render_interface.Reset();
 #endif
 
 	Shell::Shutdown();