Removed overly defensive code and ensure GL state to be restored.
Fixes #1673
This commit is contained in:
parent
accfc1221f
commit
d866b6c167
|
@ -350,7 +350,7 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
|
|||
GL11.glRotatef( 180.0f, 0.0f, 1.0f, 0.0f );
|
||||
}
|
||||
|
||||
GL11.glPushMatrix();
|
||||
// GL11.glPushMatrix();
|
||||
try
|
||||
{
|
||||
final ItemStack sis = ais.getItemStack();
|
||||
|
@ -374,8 +374,13 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
|
|||
{
|
||||
AELog.error( e );
|
||||
}
|
||||
finally
|
||||
{
|
||||
GL11.glEnable( GL11.GL_LIGHTING );
|
||||
GL11.glEnable( GL12.GL_RESCALE_NORMAL );
|
||||
}
|
||||
|
||||
GL11.glPopMatrix();
|
||||
// GL11.glPopMatrix();
|
||||
|
||||
GL11.glTranslatef( 0.0f, 0.14f, -0.24f );
|
||||
GL11.glScalef( 1.0f / 62.0f, 1.0f / 62.0f, 1.0f / 62.0f );
|
||||
|
|
Loading…
Reference in New Issue