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
@@ -1,6 +1,7 @@
|
||||
package mekanism.client.gui;
|
||||
|
||||
import mekanism.client.gui.element.GuiContainerEditMode;
|
||||
import mekanism.client.render.MekanismRenderer;
|
||||
import mekanism.common.content.tank.TankUpdateProtocol;
|
||||
import mekanism.common.inventory.container.ContainerDynamicTank;
|
||||
import mekanism.common.tile.TileEntityDynamicTank;
|
||||
@@ -11,7 +12,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 GuiDynamicTank extends GuiEmbeddedGaugeTile<TileEntityDynamicTank> {
|
||||
@@ -45,7 +45,7 @@ public class GuiDynamicTank extends GuiEmbeddedGaugeTile<TileEntityDynamicTank>
|
||||
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