Wrong direction

i created a sphere and and was able to map a world texture on it. but texture i have pasted is not positioned properly.
for eg.
texture on sphere must be like this

1.0 1,1

0,0 0,1

but on sphere it is like this,

1,1 0,1

1,0 0,0

what should i do ?

You can use texture matrix to flip or rotate.

how ?

glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glRotatef(90.0f, 0.0f, 0.0f, 1.0f); //to rotate by 90 degrees
glScalef(-1.0f, 1.0f, 1.0f); //to flip horizontally


glMatrixMode(GL_MODELVIEW); //back to model view