Permalink
Browse files

Reset a few more flags when rendering printouts

Closes #63
  • Loading branch information...
SquidDev committed Aug 13, 2018
1 parent 50797bb commit 64d9c33916a15e76e23064fb6e501b5a40059c65
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/main/java/dan200/computercraft/client/render/PrintoutRenderer.java
@@ -65,6 +65,10 @@ public static void drawText( int x, int y, int start, TextBuffer[] text, TextBuf
public static void drawText( int x, int y, int start, String[] text, String[] colours )
{
GlStateManager.color( 1.0f, 1.0f, 1.0f, 1.0f );
GlStateManager.enableBlend();
GlStateManager.enableTexture2D();
FixedWidthFontRenderer fontRenderer = (FixedWidthFontRenderer) ComputerCraft.getFixedWidthFontRenderer();
for( int line = 0; line < LINES_PER_PAGE && line < text.length; ++line )
@@ -76,6 +80,9 @@ public static void drawText( int x, int y, int start, String[] text, String[] co
public static void drawBorder( double x, double y, double z, int page, int pages, boolean isBook )
{
GlStateManager.color( 1.0f, 1.0f, 1.0f, 1.0f );
GlStateManager.enableBlend();
GlStateManager.enableTexture2D();
Minecraft.getMinecraft().getTextureManager().bindTexture( BG );
Tessellator tessellator = Tessellator.getInstance();

0 comments on commit 64d9c33

Please sign in to comment.