Fixed initialisation order issue in GLVideoSystem
authorIngo Ruhnke <grumbel@gmail.com>
Mon, 18 Aug 2014 00:47:43 +0000 (02:47 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Mon, 18 Aug 2014 00:47:43 +0000 (02:47 +0200)
src/video/gl/gl_video_system.cpp
src/video/gl/gl_video_system.hpp

index b19c9d9..dde614d 100644 (file)
@@ -23,9 +23,9 @@
 #include "video/texture_manager.hpp"
 
 GLVideoSystem::GLVideoSystem() :
+  m_texture_manager(new TextureManager),
   m_renderer(new GLRenderer),
-  m_lightmap(new GLLightmap),
-  m_texture_manager(new TextureManager)
+  m_lightmap(new GLLightmap)
 {
 }
 
index 34fbb8f..6928f71 100644 (file)
@@ -27,9 +27,9 @@ class TextureManager;
 class GLVideoSystem : public VideoSystem
 {
 private:
+  std::unique_ptr<TextureManager> m_texture_manager;
   std::unique_ptr<Renderer> m_renderer;
   std::unique_ptr<Lightmap> m_lightmap;
-  std::unique_ptr<TextureManager> m_texture_manager;
 
 public:
   GLVideoSystem();