put global render state update at bottom or something

This commit is contained in:
DBotThePony 2024-08-28 19:50:33 +07:00
parent d1f5ed3916
commit 98a4e91df3
Signed by: DBot
GPG Key ID: DCC23B5715498507
2 changed files with 5 additions and 3 deletions

View File

@ -105,10 +105,10 @@ class MatterReplicatorRenderer(private val context: BlockEntityRendererProvider.
source.endBatch()
} finally {
lockBlendFunc = false
glBlendColor(0f, 0f, 0f, 0f)
}
RenderSystem.defaultBlendFunc()
glBlendColor(0f, 0f, 0f, 0f)
pose.popPose()
}

View File

@ -723,10 +723,12 @@ abstract class MatteryScreen<T : MatteryMenu>(menu: T, inventory: Inventory, tit
break
}
}
RenderSystem.enableDepthTest()
}
}
RenderSystem.disableDepthTest()
RenderSystem.disableBlend()
RenderSystem.defaultBlendFunc()
}
override fun containerTick() {