/**
* <p>Unload the texture specified by the given ResourceLocation.</p>
*
* @param loc the ResourceLocation
*/
public static void unloadTexture(ResourceLocation loc) {
TextureObject tex = SCReflector.instance.getTexturesMap(Minecraft.getMinecraft().renderEngine).remove(loc);
if (tex != null) {
glDeleteTextures(tex.getGlTextureId());
}
}
Rendering.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:SevenCommons
作者:
评论列表
文章目录