Index: ps/trunk/source/ps/GameSetup/GameSetup.cpp =================================================================== --- ps/trunk/source/ps/GameSetup/GameSetup.cpp +++ ps/trunk/source/ps/GameSetup/GameSetup.cpp @@ -596,8 +596,6 @@ // create terrain related stuff new CTerrainTextureManager; - g_RenderingOptions.ReadConfigAndSetupHooks(); - g_Renderer.Open(g_xres, g_yres); // Setup lighting environment. Since the Renderer accesses the @@ -1044,6 +1042,9 @@ } ogl_WarnIfError(); + + g_RenderingOptions.ReadConfigAndSetupHooks(); + InitRenderer(); InitInput(); Index: ps/trunk/source/renderer/PostprocManager.cpp =================================================================== --- ps/trunk/source/renderer/PostprocManager.cpp +++ ps/trunk/source/renderer/PostprocManager.cpp @@ -92,11 +92,13 @@ m_Width = g_Renderer.GetWidth(); m_Height = g_Renderer.GetHeight(); + RecreateBuffers(); + m_IsInitialized = true; + + // Once we have initialised the buffers, we can update the techniques. UpdateAntiAliasingTechnique(); UpdateSharpeningTechnique(); UpdateSharpnessFactor(); - RecreateBuffers(); - m_IsInitialized = true; // This might happen after the map is loaded and the effect chosen SetPostEffect(m_PostProcEffect);