Fix pipe texture rendering.
Likely horribly wrong. but it *looks* correct in 1.6.