Texture being rendered wrong

This texture is being rendered the wrong way. Where could be the mistake?

Original texture:

That’s being drawn:

Probably in your code, but we can not know until we see it.