Fix texture parameters handling on texture change.

1 file changed