Fixed texture padding bug, for textures in the size of 2048 (Thanks Alessio Prosperi)