Move triangle drawer into a command and change the sky code to use it if r_cubesky is enabled
This commit is contained in:
parent
ea72152c31
commit
d5865a46a0
5 changed files with 480 additions and 393 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue