Merge pull request #74 from AngelAuraMC/fix/gl0.0-fix-crash

fix(GLFW): Fixx NullPtr when using zink without turnip
This commit is contained in:
alexytomi
2025-08-24 09:55:46 +08:00
committed by GitHub

View File

@@ -1005,7 +1005,9 @@ public class GLFW
// These values can be found at headings_array.xml
switch (System.getenv("POJAV_RENDERER")) {
case "vulkan_zink":
if (System.getenv("POJAV_LOAD_TURNIP").equals("1")) {
Boolean turnipLoad = System.getenv("POJAV_LOAD_TURNIP") != null ?
System.getenv("POJAV_LOAD_TURNIP").equals("1") : false;
if (turnipLoad) {
System.out.println("GLFW: Turnip+Zink detected, setting GL context to 4.6");
glMajor = 4;
glMinor = 6;