Texture mapping and glutSolidSphere

Posted 29 October 2011 - 06:05 AM

Hey all

I'm trying to map a texture (Attached with this post, although I converted it from bmp to png to reduce the size... Yes my connection is THAT crappy) on a sphere generated by glutSolidSphere, but for some reason I it's not looking right. You can see the result below.

I'm pretty sure the error is in my main.cpp and not in imageloader.cpp, but I've included it just in case.
My code is as follows: