From d75d7cd09a477ebfbf47ee6e11e1f9fd0f25d29c Mon Sep 17 00:00:00 2001 From: Sryder13 Date: Mon, 31 Mar 2014 00:07:55 +0100 Subject: [PATCH] OpenGL Splitscreen Fix First screen in split-screen is now not completely black. --- src/hardware/hw_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 8cfa11504..05964351c 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4635,7 +4635,8 @@ void HWR_RenderPlayerView(INT32 viewnumber, player_t *player) ClearColor.blue = 0.0f; ClearColor.alpha = 1.0f; - HWD.pfnClearBuffer(true, false, &ClearColor); // Clear the Color Buffer, stops HOMs. Also seems to fix the skybox issue on Intel GPUs. + if (viewnumber == 0) // Only do it if it's the first screen being rendered + HWD.pfnClearBuffer(true, false, &ClearColor); // Clear the Color Buffer, stops HOMs. Also seems to fix the skybox issue on Intel GPUs. if (skybox && drawsky) // If there's a skybox and we should be drawing the sky, draw the skybox HWR_RenderSkyboxView(viewnumber, player); // This is drawn before everything else so it is placed behind