1
1
forked from 0ad/0ad

Fix 3391542fec: AA / Sharpness not being correctly enabled at the start.

Reported by: OptimusShepard
Tested By: OptimusShepard, Stan
Differential Revision: https://code.wildfiregames.com/D3138
This was SVN commit r24318.
This commit is contained in:
wraitii 2020-12-03 12:19:44 +00:00
parent 72d8bf47d4
commit f44390f3fc
2 changed files with 7 additions and 4 deletions

View File

@ -596,8 +596,6 @@ static void InitRenderer()
// 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 @@ void InitGraphics(const CmdLineArgs& args, int flags, const std::vector<CStr>& i
}
ogl_WarnIfError();
g_RenderingOptions.ReadConfigAndSetupHooks();
InitRenderer();
InitInput();

View File

@ -92,11 +92,13 @@ void CPostprocManager::Initialize()
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);