diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-05-21 00:44:42 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-05-23 12:14:41 -0700 |
commit | fecd8d9c3a2798ffb54c390a6ef9a801855cce87 (patch) | |
tree | ed2320189f0f8316ffe64a19e53263087f3a9d77 /README.txt | |
parent | ef219245e5eee4f951b3e2b3903953fba7d1a0cf (diff) | |
download | waffle-fecd8d9c3a2798ffb54c390a6ef9a801855cce87.tar.gz |
readme: Fix example code, again
Fix typo: creat -> create.
Remove call to waffle_finish().
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'README.txt')
-rw-r--r-- | README.txt | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -88,7 +88,7 @@ example, see `/examples/gl_basic.c` [3]. struct waffle_display *dpy = waffle_display_connect(NULL); struct waffle_config *config = waffle_config_choose(dpy, config_attrs); struct waffle_window *window = waffle_window_create(dpy, width, height); - struct waffle_context *ctx = waffle_context_creat(config, NULL); + struct waffle_context *ctx = waffle_context_create(config, NULL); glClearColor = waffle_dl_sym(WAFFLE_DL_OPENGL, "glClearColor"); glClear = waffle_dl_sym(WAFFLE_DL_OPENGL, "glClear"); @@ -105,7 +105,6 @@ example, see `/examples/gl_basic.c` [3]. waffle_context_destroy(ctx); waffle_config_destroy(config); waffle_display_disconnect(dpy); - waffle_finish(); return 0; } |