diff options
author | Bryce Harrington <bryce@osg.samsung.com> | 2015-07-30 17:16:53 -0700 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-10-28 17:02:16 -0700 |
commit | eb56bf8a5079c87d38d5eae63064308c14fdb876 (patch) | |
tree | 0d69783a235a08467151962a89c97c8036e85070 | |
parent | d18212f67d0a772737e10b862f615c3822d6d13b (diff) | |
download | cairo-eb56bf8a5079c87d38d5eae63064308c14fdb876.tar.gz |
boilerplate: Fix list termination for glXChooseVisual
The attribute list is terminated by GLX_NONE (defined as 0x8000), but
the man page of 'glXChooseVisual' says it must be terminated with None
(0L).
Issue found and fix suggested by Massimo.
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=91293
-rw-r--r-- | boilerplate/cairo-boilerplate-glx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boilerplate/cairo-boilerplate-glx.c b/boilerplate/cairo-boilerplate-glx.c index 3d582151e..7701d908f 100644 --- a/boilerplate/cairo-boilerplate-glx.c +++ b/boilerplate/cairo-boilerplate-glx.c @@ -82,13 +82,13 @@ _cairo_boilerplate_gl_create_surface (const char *name, GLX_BLUE_SIZE, 1, GLX_ALPHA_SIZE, 1, GLX_DOUBLEBUFFER, - GLX_NONE }; + None }; int rgb_attribs[] = { GLX_RGBA, GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1, GLX_BLUE_SIZE, 1, GLX_DOUBLEBUFFER, - GLX_NONE }; + None }; XVisualInfo *visinfo; GLXContext ctx; gl_target_closure_t *gltc; |