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:
parent
72d8bf47d4
commit
f44390f3fc
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user