I think I know what you might be doing.

Double check your code for the order in which you set your vectors after you set to draw with QUADS. You must start with the top-left, then go to the top-right, bottom-right, bottom-left. If you don't do this for both, you can get flipped or rotated drawing.