diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-08-17 21:22:00 -0500 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-08-17 21:28:59 -0500 |
| commit | 32fb61816b95707d8adac423d997db72367da4ce (patch) | |
| tree | 0f64b28933b994fa432d3e167135e86e24f05d87 /Source | |
| parent | 9e2fbaf40551b6d037a94274433b03c580dc1604 (diff) | |
Fixes PP-shaders on !Mesa targets.
Seems mesa has a quirk where
define THING(x) (#x)
is the same as
define THING(x) (##x)
Didn't realize I messed it up since it just worked since I only tested on Mesa.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/PostProcessing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/PostProcessing.cpp b/Source/Core/VideoBackends/OGL/PostProcessing.cpp index 15c89a9443..10ccf9fba8 100644 --- a/Source/Core/VideoBackends/OGL/PostProcessing.cpp +++ b/Source/Core/VideoBackends/OGL/PostProcessing.cpp @@ -265,8 +265,8 @@ void OpenGLPostProcessing::CreateHeader() "\tocol0 = color;\n" "}\n" - "#define GetOption(x) (option_#x)\n" - "#define OptionEnabled(x) (option_#x != 0)\n"; + "#define GetOption(x) (option_##x)\n" + "#define OptionEnabled(x) (option_##x != 0)\n"; } std::string OpenGLPostProcessing::LoadShaderOptions(const std::string& code) |
