Change RenderTranslucentPass to be a singleton

This commit is contained in:
Magnus Norddahl 2017-01-26 08:36:28 +01:00
commit 34f85569b4
8 changed files with 31 additions and 20 deletions

View file

@ -47,8 +47,11 @@ CVAR(Bool, r_fullbrightignoresectorcolor, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG
namespace swrenderer
{
bool RenderTranslucentPass::DrewAVoxel;
TArray<DrawSegment *> RenderTranslucentPass::portaldrawsegs;
RenderTranslucentPass *RenderTranslucentPass::Instance()
{
static RenderTranslucentPass instance;
return &instance;
}
void RenderTranslucentPass::Deinit()
{