Browse Source

Fix logic error.

Darryl Pogue 12 years ago
parent
commit
25407bf2ca
  1. 8
      Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp

8
Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp

@ -2004,8 +2004,8 @@ PF_CONSOLE_CMD( Graphics_Show, Normal, "", "Toggle normal geometry visible")
{
static bool on = true;
if (!on) {
on = !on;
on = !on;
if (on) {
pfConsole::GetPipeline()->SetDrawableTypeMask(pfConsole::GetPipeline()->GetDrawableTypeMask() | plDrawableSpans::kNormal);
} else {
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 uint32_t oldMask = plDrawableSpans::kNormal;
if (!on) {
on = !on;
on = !on;
if (on) {
oldMask = pfConsole::GetPipeline()->GetDrawableTypeMask();
pfConsole::GetPipeline()->SetDrawableTypeMask(plDrawableSpans::kNormal);
} else {

Loading…
Cancel
Save