summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-04-09 13:19:15 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-04-09 13:19:15 -0700
commitef63eaa3b0a8ecdf5670cf74f6a4d539bffb0e84 (patch)
tree167aa3fdc7f475d0a0480704cbee2a2ab5643678
parent34f326c4e449dc789b617bdb64acbc892d1f2524 (diff)
readme: Fix example code
Call waffle_make_current(dpy, NULL, NULL) before teardown. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r--README.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.txt b/README.txt
index a002ae9..abc3312 100644
--- a/README.txt
+++ b/README.txt
@@ -95,6 +95,7 @@ example, see `/examples/gl_basic.c` [3].
waffle_window_swap_buffers(window);
// Teardown waffle.
+ waffle_make_current(dpy, NULL, NULL);
waffle_window_destroy(window);
waffle_context_destroy(ctx);
waffle_config_destroy(config);