Skip to content

Commit

Permalink
ifdef guard use of DX-only global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dpogue committed Dec 30, 2022
1 parent 5380d3f commit 9d561fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ PF_CONSOLE_CMD( Graphics, BumpW, "", "Set bump mapping method to cheapest availa
pfConsole::GetPipeline()->SetDebugFlag(plPipeDbg::kFlagBumpW, true);
}


#ifdef PLASMA_PIPELINE_DX
PF_CONSOLE_CMD( Graphics, AllowWBuffering, "", "Enables the use of w-buffering\n(w-buffering is disabled by default)." )
{
PF_SANITY_CHECK(pfConsole::GetPipeline() == nullptr, "This command MUST be used in an .ini file (before pipeline initialization)");
Expand All @@ -1111,6 +1111,7 @@ PF_CONSOLE_CMD( Graphics, ForceGeForce2Quality, "", "Forces higher-level hardwar
fDbgSetupInitFlags |= 0x00000004;
PrintString( "Hardware caps forced down to GeForce 2 level." );
}
#endif // PLASMA_PIPELINE_DX

#endif // LIMIT_CONSOLE_COMMANDS

Expand Down

0 comments on commit 9d561fa

Please sign in to comment.