Fixes stuff with textures and stuff.