From c8ba84dc3388de199a99db2b3e6d080fd8545514 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 11 Jan 2019 19:53:30 +0100 Subject: [PATCH] - fix black cam texture on HUD # Conflicts: # src/gl/renderer/gl_scene.cpp --- src/gl/renderer/gl_scene.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gl/renderer/gl_scene.cpp b/src/gl/renderer/gl_scene.cpp index b5f2c7b929..f19bf10189 100644 --- a/src/gl/renderer/gl_scene.cpp +++ b/src/gl/renderer/gl_scene.cpp @@ -152,7 +152,8 @@ sector_t * FGLRenderer::RenderViewpoint (FRenderViewpoint &mainvp, AActor * came { R_SetupFrame (mainvp, r_viewwindow, camera); - UpdateShadowMap(); + if (mainview && toscreen) + UpdateShadowMap(); // Render (potentially) multiple views for stereo 3d // Fixme. The view offsetting should be done with a static table and not require setup of the entire render state for the mode.