|
|
@ -2004,8 +2004,8 @@ PF_CONSOLE_CMD( Graphics_Show, Normal, "", "Toggle normal geometry visible") |
|
|
|
{ |
|
|
|
{ |
|
|
|
static bool on = true; |
|
|
|
static bool on = true; |
|
|
|
|
|
|
|
|
|
|
|
if (!on) { |
|
|
|
on = !on; |
|
|
|
on = !on; |
|
|
|
if (on) { |
|
|
|
pfConsole::GetPipeline()->SetDrawableTypeMask(pfConsole::GetPipeline()->GetDrawableTypeMask() | plDrawableSpans::kNormal); |
|
|
|
pfConsole::GetPipeline()->SetDrawableTypeMask(pfConsole::GetPipeline()->GetDrawableTypeMask() | plDrawableSpans::kNormal); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
pfConsole::GetPipeline()->SetDrawableTypeMask(pfConsole::GetPipeline()->GetDrawableTypeMask() & ~plDrawableSpans::kNormal); |
|
|
|
pfConsole::GetPipeline()->SetDrawableTypeMask(pfConsole::GetPipeline()->GetDrawableTypeMask() & ~plDrawableSpans::kNormal); |
|
|
@ -2021,8 +2021,8 @@ PF_CONSOLE_CMD( Graphics_Show, NormalOnly, "", "Toggle only normal geometry visi |
|
|
|
static bool on = false; |
|
|
|
static bool on = false; |
|
|
|
static uint32_t oldMask = plDrawableSpans::kNormal; |
|
|
|
static uint32_t oldMask = plDrawableSpans::kNormal; |
|
|
|
|
|
|
|
|
|
|
|
if (!on) { |
|
|
|
on = !on; |
|
|
|
on = !on; |
|
|
|
if (on) { |
|
|
|
oldMask = pfConsole::GetPipeline()->GetDrawableTypeMask(); |
|
|
|
oldMask = pfConsole::GetPipeline()->GetDrawableTypeMask(); |
|
|
|
pfConsole::GetPipeline()->SetDrawableTypeMask(plDrawableSpans::kNormal); |
|
|
|
pfConsole::GetPipeline()->SetDrawableTypeMask(plDrawableSpans::kNormal); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|