mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 12:42:50 +00:00
Check for lack of GL2.1 before doing non-shader operations.
This commit is contained in:
1 parent
14bf310dab
commit
ac4df97b45
3 files changed
+3
-3
No files matched your search
@@ -62,7 +62,7 @@ public final class ShaderHelper {
|
||||
}
|
||||
|
||||
|
||||
private static boolean useShaders() {
|
||||
public static boolean useShaders() {
|
||||
return ConfigHandler.useShaders && OpenGlHelper.shadersSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ public class RenderTileEnchanter extends TileEntitySpecialRenderer {
|
||||
GL11.glColor4f(1F, 1F, 1F, 1F);
|
||||
GL11.glDisable(GL11.GL_ALPHA_TEST);
|
||||
float alpha = (float) ((Math.sin(enchanter.getWorldObj().getTotalWorldTime() / 8D) + 1D) / 5D + 0.4D) * alphaMod;
|
||||
if(ConfigHandler.useShaders)
|
||||
if(ShaderHelper.useShaders())
|
||||
GL11.glColor4f(1F, 1F, 1F, alpha);
|
||||
else {
|
||||
int light = 15728880;
|
||||
|
||||
@@ -87,7 +87,7 @@ public class RenderTilePylon extends TileEntitySpecialRenderer {
|
||||
model.renderCrystal();
|
||||
|
||||
GL11.glColor4f(1F, 1F, 1F, 1F);
|
||||
if(!ConfigHandler.useShaders) {
|
||||
if(!ShaderHelper.useShaders()) {
|
||||
int light = 15728880;
|
||||
int lightmapX = light % 65536;
|
||||
int lightmapY = light / 65536;
|
||||
|
||||
Reference in new issue
Block a user