Some hacks to get textures working.