Fixed some minor bugs in paraxial texture lock code.