Fixed resize handling of lightmaps, they are now recreated on resize()
[supertux.git] / src / supertux / main.cpp
index 6dc7c37..1cfba9c 100644 (file)
@@ -306,8 +306,7 @@ Main::launch_game()
 
   timelog("video");
   std::unique_ptr<VideoSystem> video_system = VideoSystem::create(g_config->video);
-  DrawingContext context(video_system->get_renderer(),
-                         video_system->get_lightmap());
+  DrawingContext context(*video_system);
   init_video();
 
   timelog("audio");