Commit 1fbc6e6c by Lukas Hermanns

Added 'GL_core_profile' and 'GL_compatibility_profile' macro definition to preamble.

Added version check (version >= 150) for GL_(core/compatibility)_profile macros. Added GL_core_profile standard macro check to "150.vert" test file. Fixed version check for GL_core_profile macros, and removed bad token character from 150.vert test. Updated 150.vert.out test base-result with google-test suite.
parent 229a6f7f
#version 150 core
#ifndef GL_core_profile
# error standard macro GL_core_profile not defined
#endif
in vec4 iv4;
uniform float ps;
......
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment