title: openGL sphere that is both wireframe and solid
body: <p>I manually drew a sphere, at last :) I want my sphere to be red, but the outlines to be green:<br />
  <img src="https://i.stack.imgur.com/Cl6Db.png" alt="alt text" /><br />
  In order to achieve this I did the following. I drew a solid sphere in red, and then I drew the same sphere, but wireframe and green. When I turned DEPTH_TEST on, I got some weird behavior, like this:<img src="https://i.stack.imgur.com/0tB9t.png" alt="alt text" /></p>
  <p>And in order to avoid this weird behavior I just drew the wired sphere scaled by <code>(1.001, 1.001, 1.001)</code> and everything is drawn perfectly, as in the first picture. My question is, am I, a real newbie, doing it in a bad way? Are there any better ways to do what I want to do? Thanks in advance.</p>
  <p>P.S. I am drawing the sphere manually for an exercise's sake, I am aware of the existence of glu quadrics routines and glut's sphere.</p>