From a7f4185981713510beb0c5243c67b0c6b797542a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 16 Nov 2014 09:08:47 +0100 Subject: [PATCH] - now that we don't have to care anymore about SVN-related merging problems, let's save the 3 global variables of the GL renderer unconditionally, even if the software renderer is running. --- src/g_level.cpp | 2 ++ src/gl/scene/gl_scene.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/g_level.cpp b/src/g_level.cpp index 2a2d6471a..7eeb443fb 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -1439,12 +1439,14 @@ void G_AirControlChanged () // // //========================================================================== +void gl_SerializeGlobals(FArchive &arc); void G_SerializeLevel (FArchive &arc, bool hubLoad) { int i = level.totaltime; Renderer->StartSerialize(arc); + gl_SerializeGlobals(arc); arc << level.flags << level.flags2 diff --git a/src/gl/scene/gl_scene.cpp b/src/gl/scene/gl_scene.cpp index 79d21e4e3..395403690 100644 --- a/src/gl/scene/gl_scene.cpp +++ b/src/gl/scene/gl_scene.cpp @@ -999,6 +999,10 @@ void FGLInterface::StateChanged(AActor *actor) void FGLInterface::StartSerialize(FArchive &arc) { gl_DeleteAllAttachedLights(); +} + +void gl_SerializeGlobals(FArchive &arc) +{ arc << fogdensity << outsidefogdensity << skyfog; }