Merge pull request #762 from LukasBanana/master

Added 'GL_core_profile' and 'GL_compatibility_profile' to macro expansion
This commit is contained in:
John Kessenich 2017-03-11 14:16:58 -07:00 committed by GitHub
commit c04c6a4067
3 changed files with 84 additions and 67 deletions

View file

@ -332,6 +332,19 @@ void TParseVersions::getPreamble(std::string& preamble)
"#define GL_GOOGLE_include_directive 1\n"
;
if (version >= 150) {
// define GL_core_profile and GL_compatibility_profile
preamble +=
"#define GL_core_profile 1\n"
;
if (profile == ECompatibilityProfile) {
preamble +=
"#define GL_compatibility_profile 1\n"
;
}
}
// #define VULKAN XXXX
const int numberBufSize = 12;
char numberBuf[numberBufSize];