Vulkan: Add the #define VULKAN 100 when compiled for Vulkan.
Note this requires test-based piecing together of the preamble string, so it changed to being a std::string to make it easier to do. This closes issue #254.
This commit is contained in:
parent
af459216a1
commit
e512cd943e
6 changed files with 30 additions and 14 deletions
|
|
@ -629,7 +629,9 @@ bool ProcessDeferred(
|
|||
parseContext->initializeExtensionBehavior();
|
||||
|
||||
// Fill in the strings as outlined above.
|
||||
strings[0] = parseContext->getPreamble();
|
||||
std::string preamble;
|
||||
parseContext->getPreamble(preamble);
|
||||
strings[0] = preamble.c_str();
|
||||
lengths[0] = strlen(strings[0]);
|
||||
names[0] = nullptr;
|
||||
strings[1] = customPreamble;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue