summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-04-04 17:22:57 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-04-08 12:37:34 -0700
commit506088a84e761405d92ccf2a6430e3d64691a34c (patch)
tree80685d5e413e7a8681d8b87c3245bebd5a6b5734 /examples
parent8eaa2fcf5e7002cfcd969b4751e25217cad3b10d (diff)
waffle: Change signature of waffle_make_current
Add a `display` parameter to waffle_make_current in order to allow users to release the current context. To release the current context, the user calls it like this: waffle_make_current(dpy, window=0, ctx=0). Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/gl_basic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gl_basic.c b/examples/gl_basic.c
index 81a2fa6..b37499f 100644
--- a/examples/gl_basic.c
+++ b/examples/gl_basic.c
@@ -307,7 +307,7 @@ main(int argc, char **argv)
if (!window)
error_waffle();
- ok = waffle_make_current(window, ctx);
+ ok = waffle_make_current(dpy, window, ctx);
if (!ok)
error_waffle();