1
0
forked from 0ad/0ad

Fix graphics issue with old AMD cards.

Reviewed by: @vladislavbelov
https://upload.jabberfr.org/hUkR3nTdfhbhHI92/0b5c64c3-136c-4744-a4ca-a70222a3cfaf.png

This was SVN commit r24292.
This commit is contained in:
Stan 2020-11-29 16:26:28 +00:00
parent f230988e0e
commit d2075bed5d

View File

@ -1387,9 +1387,6 @@ void CRenderer::RenderSubmissions(const CBoundingBoxAligned& waterScissor)
ogl_WarnIfError();
}
if (g_Renderer.GetPostprocManager().IsMultisampleEnabled())
g_Renderer.GetPostprocManager().ResolveMultisampleFramebuffer();
// render debug-related terrain overlays
ITerrainOverlay::RenderOverlaysAfterWater(cullGroup);
ogl_WarnIfError();
@ -1407,6 +1404,9 @@ void CRenderer::RenderSubmissions(const CBoundingBoxAligned& waterScissor)
if (g_RenderingOptions.GetPostProc())
{
if (g_Renderer.GetPostprocManager().IsMultisampleEnabled())
g_Renderer.GetPostprocManager().ResolveMultisampleFramebuffer();
m->postprocManager.ApplyPostproc();
m->postprocManager.ReleaseRenderOutput();
}