Fixed texture encoding. Fixes the interaction with objects in Another Code R. Thanks to wordmanwords for the patch. Fixes issue 5405.