Revert "Fix texture parameters not being backed up and reverted"

This reverts commit a3139cea8f1342fd4a22ef89ecfa34cfc72d345f.