Added window parameter to glfwSwapBuffers.
diff --git a/examples/heightmap.c b/examples/heightmap.c
index 7b03a1b..ce894f9 100644
--- a/examples/heightmap.c
+++ b/examples/heightmap.c
@@ -663,7 +663,7 @@
         glDrawElements(GL_LINES, 2* MAP_NUM_LINES , GL_UNSIGNED_INT, 0);
 
         /* display and process events through callbacks */
-        glfwSwapBuffers();
+        glfwSwapBuffers(window);
         glfwPollEvents();
         /* Check the frame rate and update the heightmap if needed */
         dt = glfwGetTime();