Target OpenGL 3.3 core profile (#1412)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2026-03-02 22:18:11 -08:00
1 parent cf9993fce4
commit d7d2228a6c
151 files changed
+11747 -1673

No files matched your search

@@ -49,13 +49,6 @@ public class CenterDepthSampler {
try {
String fsh = new String(IOUtils.toByteArray(Objects.requireNonNull(getClass().getResourceAsStream("/centerDepth.fsh"))), StandardCharsets.UTF_8);
if (GLStateManager.capabilities.OpenGL32) {
fsh = fsh.replace("VERSIONPLACEHOLDER", "150 compatibility");
} else {
fsh = fsh.replace("#define IS_GL3", "");
fsh = fsh.replace("VERSIONPLACEHOLDER", "120");
}
String vsh = new String(IOUtils.toByteArray(Objects.requireNonNull(getClass().getResourceAsStream("/centerDepth.vsh"))), StandardCharsets.UTF_8);
builder = ProgramBuilder.begin("centerDepthSmooth", vsh, null, fsh, ImmutableSet.of(0, 1, 2));