mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-26 11:27:38 +00:00
Fix texture artifacts when rendering monitors
- Adds a 1px margin around every glyph. This is generally empty, with the exception of teletext characters where it continues their pattern. - Uses GL_CLAMP with the font texture. Closes #300
This commit is contained in:
@@ -179,7 +179,7 @@ public class TileEntityMonitorRenderer extends TileEntitySpecialRenderer<TileMon
|
||||
GlStateManager.callList( origin.m_renderDisplayList );
|
||||
|
||||
// Draw text
|
||||
mc.getTextureManager().bindTexture( FixedWidthFontRenderer.font );
|
||||
fontRenderer.bindFont();
|
||||
if( redraw )
|
||||
{
|
||||
// Build text display list
|
||||
@@ -206,7 +206,7 @@ public class TileEntityMonitorRenderer extends TileEntitySpecialRenderer<TileMon
|
||||
GlStateManager.callList( origin.m_renderDisplayList + 1 );
|
||||
|
||||
// Draw cursor
|
||||
mc.getTextureManager().bindTexture( FixedWidthFontRenderer.font );
|
||||
fontRenderer.bindFont();
|
||||
if( redraw )
|
||||
{
|
||||
// Build cursor display list
|
||||
|
||||
Reference in New Issue
Block a user