mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-04 15:40:02 +00:00
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.
This commit is contained in:
parent
9e2fbaf405
commit
32fb61816b
@ -265,8 +265,8 @@ void OpenGLPostProcessing::CreateHeader()
|
|||||||
"\tocol0 = color;\n"
|
"\tocol0 = color;\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
|
|
||||||
"#define GetOption(x) (option_#x)\n"
|
"#define GetOption(x) (option_##x)\n"
|
||||||
"#define OptionEnabled(x) (option_#x != 0)\n";
|
"#define OptionEnabled(x) (option_##x != 0)\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string OpenGLPostProcessing::LoadShaderOptions(const std::string& code)
|
std::string OpenGLPostProcessing::LoadShaderOptions(const std::string& code)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user