Jump to content

Textures not preloading


Exterminator Jeff

Recommended Posts

I'm having issues with my textures getting preloaded. Quite often I get the error message "texture.png not preloaded, will cause render glitches!" and about half the times this happens all my textures will just be white in game. Reloading the textures by pressing f3 + t fixes it but its really quite annoying and the error message gives no details as to why they aren't being preloaded properly.

 

I had a look through the code to see where this error was happening and it comes from the onTextureLoadPre method in ForgeHookClient.java. The error message is printed if Tessellator.renderingWorldRenderer is true. There must be some other factor causing this as no other mods are doing this. I just can't figure out what the actual error is as there is no exception or anything. Is there something wrong with my texture file? Here is a link to it: https://dl.dropbox.com/u/36807085/BlockTextures.png

 

Thanks

Link to comment
Share on other sites

That's what I am doing. My code for that is here:

 

public class ClientProxy extends CommonProxy{

@Override
    public void registerRenderThings(){
	MinecraftForgeClient.preloadTexture("/undergroundBiomes/textures/BlockTextures.png");
	MinecraftForgeClient.preloadTexture("/undergroundBiomes/textures/Items.png");
   
    }
}
[/code/

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.