title: OpenGl - texture on glutSolidSphere does not show
body: <p>i have managed to load texture</p>
  
  <pre><code>// Load texture
      glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
  
  
  
      pBytes = gltLoadTGA("../earth.tga", &amp;iWidth, &amp;iHeight, &amp;iComponents, &amp;eFormat);     
      glTexImage2D(GL_TEXTURE_2D, 0, iComponents, iWidth, iHeight, 0, eFormat, GL_UNSIGNED_BYTE, pBytes);
      free(pBytes);
  
      glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
      glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
      glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
      glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
  
  glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
  </code></pre>
  
  <p>when i texture the sphere like this it does not show (image 256x256 32bit)</p>
  
  <pre><code>glDisable(GL_LIGHTING);
  
      glEnable(GL_TEXTURE_2D);
      glutSolidSphere(35.0f, 30, 17); 
      glDisable(GL_TEXTURE_2D);
  
      glEnable(GL_LIGHTING);
  </code></pre>
  
  <p>but i have a ship made out of a pyramid shape the same technique works on it </p>
  
  <pre><code>glEnable(GL_TEXTURE_2D);
      ship(); 
      glDisable(GL_TEXTURE_2D);
  </code></pre>
  
  <p>anyone any idea why this is happening please...(please don't mark me down i'm working hard here)</p>