mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-18 08:36:56 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user