title: crazy flashing window OpenGL GLFW
body: <p>I have completed the following video
  <a href="https://www.youtube.com/watch?v=shpdt6hCsT4" rel="noreferrer">https://www.youtube.com/watch?v=shpdt6hCsT4</a>
  however, my hello world window looked like this: 
  <a href="http://s1303.photobucket.com/user/eskimo___/media/screenshot_124_zps890ae561.jpg.html" rel="noreferrer">http://s1303.photobucket.com/user/eskimo___/media/screenshot_124_zps890ae561.jpg.html</a>
  any ideas where I've gone wrong? Im using osx yosemite with the latest GLFW
  cheers</p>
  
  <hr>
  
  <p>as requested:</p>
  
  <p>my project folder is comprised of 3 files which were made as part of the process using the terminal:</p>
  
  <ol>
  <li>main.cpp(C++ source code)</li>
  <li>Makefile(txt)</li>
  <li>test(Unix Executable File)</li>
  </ol>
  
  <p>i've set up the glfw3 library on my mac using homebrew.</p>
  
  <p>Main.cpp, which is what is run to produce the undesired effect in the window pictured, is comprised of the example code at GLFW's documentation part of the website:</p>
  
  <pre><code>include &lt;GLFW/glfw3.h&gt;
  
  int main(void)
  {
      GLFWwindow* window;
  
      /* Initialize the library */
      if (!glfwInit())
          return -1;
  
      /* Create a windowed mode window and its OpenGL context */
      window = glfwCreateWindow(640, 480, "Hello World", NULL, NULL);
      if (!window)
      {
          glfwTerminate();
          return -1;
      }
  
      /* Make the window's context current */
      glfwMakeContextCurrent(window);
  
      /* Loop until the user closes the window */
      while (!glfwWindowShouldClose(window))
      {
          /* Render here */
  
          /* Swap front and back buffers */
          glfwSwapBuffers(window);
  
          /* Poll for and process events */
          glfwPollEvents();
      }
  
      glfwTerminate();
      return 0;
  }
  </code></pre>