summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2015-07-30 17:16:53 -0700
committerBryce Harrington <bryce@osg.samsung.com>2015-10-28 17:02:16 -0700
commiteb56bf8a5079c87d38d5eae63064308c14fdb876 (patch)
tree0d69783a235a08467151962a89c97c8036e85070
parentd18212f67d0a772737e10b862f615c3822d6d13b (diff)
downloadcairo-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.c4
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;