mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 02:45:13 +00:00
Fix several glcolorub's leaking
This commit is contained in:
1 parent
6e48bb9a44
commit
a0494475dd
5 files changed
+7
-1
No files matched your search
@@ -142,6 +142,7 @@ public final class BoundTileRenderer {
|
||||
}
|
||||
}
|
||||
|
||||
GL11.glColor4ub(((byte) 255), ((byte) 255), ((byte) 255), ((byte) 255));
|
||||
GlStateManager.popMatrix();
|
||||
}
|
||||
|
||||
|
||||
@@ -264,6 +264,7 @@ public final class HUDHandler {
|
||||
GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
|
||||
RenderHelper.drawTexturedModalRect(x, y, 0, 0, 251, width, 5);
|
||||
GlStateManager.disableBlend();
|
||||
GL11.glColor4ub(((byte) 255), ((byte) 255), ((byte) 255), ((byte) 255));
|
||||
}
|
||||
|
||||
private void renderPoolRecipeHUD(ScaledResolution res, TilePool tile, ItemStack stack) {
|
||||
@@ -484,5 +485,6 @@ public final class HUDHandler {
|
||||
Color color_ = new Color(color);
|
||||
GL11.glColor4ub((byte) color_.getRed(), (byte) color_.getGreen(),(byte) color_.getBlue(), (byte) (255F * alpha));
|
||||
RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0, 0, 5, Math.min(100, manaPercentage), 3);
|
||||
GL11.glColor4ub(((byte) 255), ((byte) 255), ((byte) 255), ((byte) 255));
|
||||
}
|
||||
}
|
||||
@@ -127,6 +127,7 @@ public final class SubTileRadiusRenderHandler {
|
||||
tessellator.getWorldRenderer().pos(x, f1, z).endVertex();
|
||||
tessellator.draw();
|
||||
|
||||
GL11.glColor4ub(((byte) 255), ((byte) 255), ((byte) 255), ((byte) 255));
|
||||
GlStateManager.popMatrix();
|
||||
}
|
||||
|
||||
@@ -173,6 +174,7 @@ public final class SubTileRadiusRenderHandler {
|
||||
}
|
||||
tessellator.getWorldRenderer().pos(0, f1, 0).endVertex();
|
||||
tessellator.draw();
|
||||
GL11.glColor4ub(((byte) 255), ((byte) 255), ((byte) 255), ((byte) 255));
|
||||
GlStateManager.popMatrix();
|
||||
}
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ public class ModelHourglass extends ModelBase {
|
||||
}
|
||||
|
||||
GL11.glPopAttrib();
|
||||
GL11.glColor3f(1, 1, 1);
|
||||
GL11.glColor3ub(((byte) 255), ((byte) 255), ((byte) 255));
|
||||
glass1.render(f);
|
||||
glass2.render(f);
|
||||
}
|
||||
|
||||
@@ -189,6 +189,7 @@ public class ItemBloodPendant extends ItemBauble implements IBrewContainer, IBre
|
||||
int lightmapY = light / 65536;
|
||||
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
|
||||
}
|
||||
GL11.glColor3ub(((byte) 255), ((byte) 255), ((byte) 255));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user