Rendering.java 文件源码

java
阅读 18 收藏 0 点赞 0 评论 0

项目:SevenCommons 作者:
/**
 * <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());
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号