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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user