From 9d561fac09963354a8b6c32940e9a1ccd8a8ddf7 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Thu, 29 Dec 2022 21:37:13 -0800 Subject: [PATCH] ifdef guard use of DX-only global variable --- Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp b/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp index d4820bef8d..9b54b15bc4 100644 --- a/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp +++ b/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp @@ -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)"); @@ -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