diff --git a/src/main/java/techreborn/client/gui/TRBuilder.java b/src/main/java/techreborn/client/gui/TRBuilder.java index d2bef4c7f..d1b1cda57 100644 --- a/src/main/java/techreborn/client/gui/TRBuilder.java +++ b/src/main/java/techreborn/client/gui/TRBuilder.java @@ -39,7 +39,6 @@ import net.minecraftforge.fluids.FluidStack; import net.minecraftforge.fml.client.config.GuiUtils; import net.minecraftforge.fml.common.Loader; import org.lwjgl.input.Keyboard; -import org.lwjgl.opengl.GL11; import reborncore.api.tile.IUpgradeable; import reborncore.client.guibuilder.GuiBuilder; import reborncore.common.powerSystem.PowerSystem; @@ -462,14 +461,14 @@ public class TRBuilder extends GuiBuilder { public void renderItemStack(ItemStack stack, int x, int y) { if (stack != EMPTY) { - GL11.glEnable(GL11.GL_BLEND); - GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); + GlStateManager.enableBlend(); + GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA); RenderHelper.enableGUIStandardItemLighting(); RenderItem itemRenderer = Minecraft.getMinecraft().getRenderItem(); itemRenderer.renderItemAndEffectIntoGUI(stack, x, y); - GL11.glDisable(GL11.GL_LIGHTING); + GlStateManager.disableLighting(); } } diff --git a/src/main/java/techreborn/client/gui/autocrafting/GuiAutoCrafting.java b/src/main/java/techreborn/client/gui/autocrafting/GuiAutoCrafting.java index d0446bda9..cbe097de8 100644 --- a/src/main/java/techreborn/client/gui/autocrafting/GuiAutoCrafting.java +++ b/src/main/java/techreborn/client/gui/autocrafting/GuiAutoCrafting.java @@ -39,7 +39,6 @@ import net.minecraft.item.crafting.Ingredient; import net.minecraft.item.crafting.ShapedRecipes; import net.minecraft.util.ResourceLocation; import net.minecraftforge.oredict.ShapedOreRecipe; -import org.lwjgl.opengl.GL11; import reborncore.common.network.NetworkManager; import techreborn.client.gui.GuiBase; import techreborn.client.gui.TRBuilder; @@ -77,14 +76,14 @@ public class GuiAutoCrafting extends GuiBase { public void renderItemStack(ItemStack stack, int x, int y) { if (stack != EMPTY) { - GL11.glEnable(GL11.GL_BLEND); - GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); + GlStateManager.enableBlend(); + GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA); RenderHelper.enableGUIStandardItemLighting(); RenderItem itemRenderer = Minecraft.getMinecraft().getRenderItem(); itemRenderer.renderItemAndEffectIntoGUI(stack, x, y); - GL11.glDisable(GL11.GL_LIGHTING); + GlStateManager.disableLighting(); } }