Added patch to align texture dimensions to block size for compressed textures.