Move triangle drawer into a command and change the sky code to use it if r_cubesky is enabled

This commit is contained in:
Magnus Norddahl 2016-10-19 17:44:50 +02:00
commit d5865a46a0
5 changed files with 480 additions and 393 deletions

View file

@ -47,13 +47,10 @@
EXTERN_CVAR(Bool, r_shadercolormaps)
CVAR(Bool, r_drawtriangle, false, 0)
void R_SWRSetWindow(int windowSize, int fullWidth, int fullHeight, int stHeight, float trueratio);
void R_SetupColormap(player_t *);
void R_SetupFreelook();
void R_InitRenderer();
void R_DrawTriangle();
FSoftwareRenderer::FSoftwareRenderer()
{
@ -195,8 +192,6 @@ void FSoftwareRenderer::RenderView(player_t *player)
}
R_EndDrawerCommands();
if (r_swtruecolor && r_drawtriangle)
R_DrawTriangle();
}
//==========================================================================