How can I prevent texture stretching while scaling a mesh?

how did you that Maximvm?