title: freeglut fails to open display with valgrind
body: <p>I'm running the Eclipse IDE on Ubuntu 12.04 with the Valgrind plugin. I've been working on a game in C++ for quite some time, and I seem to have a memory error somewhere. Normally, I trace these with Valgrind. However, glut fails to initialize when I run valgrind. I should note that the game initializes without a problem when I'm not using valgrind. The code for my main function is as follows:</p>
  
  <pre><code>int main(int argc, char** argv) {
    char windowTitle[12] = "Game Window";
    printf("Initializing Glut...\n");
    glutInit(&amp;argc, argv);
    printf("Glut initialized!\n");
    alutInit(&amp;argc, argv);
    Game_Object* game = new Game_Object(windowTitle, 1200, 675, argc, argv);
    delete game;
    printf("game ended\n");
    return 0;
  }
  </code></pre>
  
  <p>The resulting output to the console is:</p>
  
  <pre><code>Initializing Glut
  freeglut (/home/dsnettleton/Documents/Programming/Eclipse/workspace/Plutoids/Debug/Plutoids): failed to open display ''
  </code></pre>
  
  <p>Obviously, the program isn't getting very far with valgrind running.
  It's really disheartening to be in such a final stage of my development, only to get stuck trying to weed out a memory error. What might be keeping glut from initializing, and what can I do to fix the problem?</p>