GLSL Downgrading (#1348)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2026-01-31 13:23:02 -08:00
1 parent dd970b4c6a
commit 41eafbd151
9 files changed
+481 -101

No files matched your search

@@ -315,6 +315,10 @@ public class ShaderPack {
// directly. This removes one obstacle to accurate reporting of line numbers for errors,
// though there exist many more (such as relocating all #extension directives and similar things)
String source = builder.toString();
// Apply shader pack workarounds for version compatibility (before preprocessing)
source = ShaderPackWorkarounds.apply(source);
source = JcppProcessor.glslPreprocessSource(source, finalEnvironmentDefines1);
return source;