Turn off the UNPACK optimization when texture scaling is on. Fixes #4408