mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Replace GL11 with GlStateManager, good bit of testing still needed
This commit is contained in:
111 files changed
+342
-378
No files matched your search
@@ -14,7 +14,6 @@ import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class GuiInductionMatrix extends GuiMekanismTile<TileEntityInductionCasing> {
|
||||
@@ -48,7 +47,7 @@ public class GuiInductionMatrix extends GuiMekanismTile<TileEntityInductionCasin
|
||||
protected void drawGuiContainerBackgroundLayer(float partialTick, int mouseX, int mouseY) {
|
||||
super.drawGuiContainerBackgroundLayer(partialTick, mouseX, mouseY);
|
||||
mc.renderEngine.bindTexture(getGuiLocation());
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
MekanismRenderer.resetColor();
|
||||
int guiWidth = (width - xSize) / 2;
|
||||
int guiHeight = (height - ySize) / 2;
|
||||
drawTexturedModalRect(guiWidth, guiHeight, 0, 0, xSize, ySize);
|
||||
|
||||
Reference in new issue
Block a user