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:
Ryan Houdek 2014-08-17 21:22:00 -05:00
parent 9e2fbaf405
commit 32fb61816b

View file

@ -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)