diff Applications/Samples/Sdl/RtViewer/RtViewerSdl.cpp @ 1591:5887a4f8594b

moving platform-specific files out of the "OrthancStone" folder
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 23 Oct 2020 13:15:03 +0200
parents 92fca2b3ba3d
children 4c9e68291467
line wrap: on
line diff
--- a/Applications/Samples/Sdl/RtViewer/RtViewerSdl.cpp	Thu Oct 22 18:39:03 2020 +0200
+++ b/Applications/Samples/Sdl/RtViewer/RtViewerSdl.cpp	Fri Oct 23 13:15:03 2020 +0200
@@ -27,9 +27,9 @@
 // Stone of Orthanc includes
 #include "../../../../OrthancStone/Sources/Loaders/GenericLoadersContext.h"
 #include "../../../../OrthancStone/Sources/OpenGL/OpenGLIncludes.h"
-#include "../../../../OrthancStone/Sources/OpenGL/SdlOpenGLContext.h"
 #include "../../../../OrthancStone/Sources/StoneException.h"
 #include "../../../../OrthancStone/Sources/StoneInitialization.h"
+#include "../../../Platforms/Sdl/SdlOpenGLContext.h"
 
 // Orthanc (a.o. for screenshot capture)
 #include <Compatibility.h>  // For std::unique_ptr<>
@@ -451,6 +451,7 @@
   using namespace OrthancStone;
 
   StoneInitialize();
+  OrthancStone::SdlWindow::GlobalInitialize();
 
   try
   {
@@ -462,7 +463,8 @@
   {
     LOG(ERROR) << "EXCEPTION: " << e.What();
   }
-
+  
+  OrthancStone::SdlWindow::GlobalFinalize();
   StoneFinalize();
 
   return 0;