Posted April 5, 20178 yr I'm i correct that to keep a Dynamic Texture "Alive" (as in always an allocated OpenGL texture) you need to use a modified texture class which forces the dynamic texture to update when loadTexture is called (Texture Manager seems to call it when onResourceManagerReload is called) ? Is there anywhere where Minecraft could delete the OpenGL texture without calling a loadTexture? package stucuk.square.client; import java.io.IOException; import net.minecraft.client.renderer.texture.DynamicTexture; import net.minecraft.client.resources.IResourceManager; public class SquareDynamicTexture extends DynamicTexture { public SquareDynamicTexture(int textureWidth, int textureHeight) { super(textureWidth, textureHeight); } @Override public void loadTexture(IResourceManager resourceManager) throws IOException { updateDynamicTexture(); } } -Stu MCI Craft (Curse) | MCI Craft (Website)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.