1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-20 16:37:39 +00:00

Dispose of monitor display lists when unloading worlds

This means all display lists are correctly deleted when changing
dimensions/exiting to main menu.
This commit is contained in:
SquidDev
2018-02-24 20:37:14 +00:00
parent 0cec4aee8c
commit 7bb8efed1d
6 changed files with 64 additions and 30 deletions

View File

@@ -108,13 +108,7 @@ public class TileEntityMonitorRenderer extends TileEntitySpecialRenderer<TileMon
// Allocate display lists
if( originTerminal.renderDisplayLists == null )
{
originTerminal.renderDisplayLists = new int[3];
for( int list = 0; list < originTerminal.renderDisplayLists.length; list++ )
{
originTerminal.renderDisplayLists[list] = GlStateManager.glGenLists( 1 );
}
originTerminal.createLists();
redraw = true;
}