title: OpenGL antialiasing with freeglut
body: <p>I am using freeglut. I'm trying to get FSAA working, but nothing seems to work. Sample buffers is 1 and Samples is 4. But I'm not seeing any anti-aliasing. Am I missing something? Currently, I am running Ubuntu 12.04; not sure if that changes anything.</p>
  
  <pre><code>#include &lt;GL/glut.h&gt;
  #include &lt;GL/glext.h&gt;
  #include &lt;stdio.h&gt;
  
  
  void render(void);
  
  int main(int argc, char **argv){    
      glutInit(&amp;argc,argv);
  
      //Initialize the window
      glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_MULTISAMPLE);
      glutInitWindowPosition(100,100);
      glutInitWindowSize(200,200);
      glutCreateWindow("Testing");
      glutDisplayFunc(render);
  
      //Enable FSAA       
      glEnable(GL_MULTISAMPLE);
  
      //2D graphics
      glDisable(GL_DEPTH_TEST);
      glMatrixMode(GL_PROJECTION);
      glLoadIdentity();
      glOrtho(0, glutGet(GLUT_WINDOW_WIDTH), glutGet(GLUT_WINDOW_HEIGHT), 0, 0, 1);
      glMatrixMode(GL_MODELVIEW);
  
  
      GLint buf, sbuf;
      glGetIntegerv(GL_SAMPLE_BUFFERS, &amp;buf);
      printf("number of sample buffers is %d\n", buf);
      glGetIntegerv(GL_SAMPLES, &amp;sbuf);
      printf("number of samples is %d\n", sbuf);
  
      glutMainLoop();
      return 0;
  }
  
  //Draw some stuff
  void render(void){  
      glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
      glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
  
      glColor3f(0.0f,1.0f,0.0f);
      glBegin(GL_LINE_LOOP);
          glVertex2f(10.0,10.0);
          glVertex2f(170.0,60.0);
          glVertex2f(50.0,130.0);
          glVertex2f(50.0,60.0);
      glEnd();    
  
      glutSwapBuffers();
  }
  </code></pre>
  
  <p>I am well aware of SDL and GLFW. I'd like to get it working in freeglut though.</p>
  
  <p><strong>More info:</strong><br/>
  Graphics card:ATI Radeon HD 4250<br/>
  OpenGL version: 3.3.11627 Compatibility Profile Context</p>