aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/makamys/neodymium/Compat.java8
-rw-r--r--src/main/java/makamys/neodymium/Neodymium.java2
2 files changed, 7 insertions, 3 deletions
diff --git a/src/main/java/makamys/neodymium/Compat.java b/src/main/java/makamys/neodymium/Compat.java
index b8aa0b1..47a3dfb 100644
--- a/src/main/java/makamys/neodymium/Compat.java
+++ b/src/main/java/makamys/neodymium/Compat.java
@@ -20,11 +20,15 @@ import net.minecraft.client.settings.GameSettings;
public class Compat {
+ private static boolean isGL33Supported;
+
private static boolean wasAdvancedOpenGLEnabled;
private static int notEnoughVRAMAmountMB = -1;
- public static void applyCompatibilityTweaks() {
+ public static void init() {
+ isGL33Supported = GLContext.getCapabilities().OpenGL33;
+
if (Loader.isModLoaded("triangulator")) {
disableTriangulator();
}
@@ -54,7 +58,7 @@ public class Compat {
}
- if(!GLContext.getCapabilities().OpenGL33) {
+ if(!isGL33Supported) {
criticalWarns.add(new Warning("OpenGL 3.3 is not supported."));
}
if(detectedNotEnoughVRAM()) {
diff --git a/src/main/java/makamys/neodymium/Neodymium.java b/src/main/java/makamys/neodymium/Neodymium.java
index 4adab56..3750ddd 100644
--- a/src/main/java/makamys/neodymium/Neodymium.java
+++ b/src/main/java/makamys/neodymium/Neodymium.java
@@ -55,7 +55,7 @@ public class Neodymium
@EventHandler
public void preInit(FMLConstructionEvent event) {
MCLib.init();
- Compat.applyCompatibilityTweaks();
+ Compat.init();
}
@EventHandler