Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ public TranslationUnit parseTranslationUnit(Root rootInstance, String input) {
versionStatement.version = Version.GLSL33;
}

// lines shaders are forced through VanillaCoreTransformer regardless of
// their declared profile, so ensure the output profile is core
if (isLine && profile != Profile.CORE) {
versionStatement.profile = Profile.CORE;
}

switch (parameters.patch) {
case COMPOSITE:
CompositeCoreTransformer.transform(transformer, tree, root, parameters);
Expand Down