render fixes under linux

This commit is contained in:
Florian Nücke 2013-12-13 12:41:23 +01:00
parent 9a8da535e2
commit d7c3513b23
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ class Case(playerInventory: InventoryPlayer, val computer: tileentity.Case) exte
}
override def drawGuiContainerBackgroundLayer(dt: Float, mouseX: Int, mouseY: Int) {
GL11.glColor3f(1, 1, 1) // Required under Linux.
super.drawGuiContainerBackgroundLayer(dt, mouseX, mouseY)
mc.renderEngine.bindTexture(computerBackground)
drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize)

View File

@ -101,6 +101,7 @@ class Robot(playerInventory: InventoryPlayer, val robot: tileentity.Robot) exten
}
override def drawGuiContainerBackgroundLayer(dt: Float, mouseX: Int, mouseY: Int) {
GL11.glColor3f(1, 1, 1) // Required under Linux.
mc.renderEngine.bindTexture(robotBackground)
drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize)
drawPowerLevel()