- simplify some code.

This commit is contained in:
Christoph Oelckers 2018-06-16 23:35:12 +02:00
parent 4937848123
commit 523104b2a8
1 changed files with 1 additions and 1 deletions

View File

@ -601,10 +601,10 @@ sector_t * GLSceneDrawer::RenderViewpoint (AActor * camera, IntRect * bounds, fl
gl_RenderState.ApplyMatrices();
ProcessScene(di, toscreen);
if (mainview && toscreen) EndDrawScene(di, lviewsector); // do not call this for camera textures.
if (mainview)
{
if (toscreen) EndDrawScene(di, lviewsector); // do not call this for camera textures.
GLRenderer->PostProcessScene(cm, [&]() { DrawEndScene2D(di, lviewsector); });
// This should be done after postprocessing, not before.