Fix texture parameters handling on texture change.