my problem is that for some reason my texture gets twisted from two sides of a cube. I load a cube from .OBJ file and the data seems to be valid. I have tested .OBJ file with another application, wich renders the cube correctly. With both applications I get same result after loading the OBJ-file, but my application doesn't render it correctly. Mysterious part is that only two sides of the cube is rendered incorrectly but four other sides looks ok. I have attached pictures from cube as well.
Work order of loading and setuping the mesh:
1. Get position data and texture position data from OBJ-file
2. Get indices of vertices
3. Setup vertex and index buffers
4. Load and setup texture
Any ideas what might cause this error?