From 523104b2a819431b5224000927a33b19176203c6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 16 Jun 2018 23:35:12 +0200 Subject: [PATCH] - simplify some code. --- src/gl/scene/gl_scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/scene/gl_scene.cpp b/src/gl/scene/gl_scene.cpp index 73421a52a..fa54cd4b3 100644 --- a/src/gl/scene/gl_scene.cpp +++ b/src/gl/scene/gl_scene.cpp @@ -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.