[cairo-commit] boilerplate/cairo-boilerplate-glx.c

Bryce Harrington bryce at kemper.freedesktop.org
Thu Jul 30 17:20:02 PDT 2015


 boilerplate/cairo-boilerplate-glx.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2de9fca5f379b57b25d4963d51ab5f082a326b98
Author: Bryce Harrington <bryce at osg.samsung.com>
Date:   Thu Jul 30 17:16:53 2015 -0700

    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 at osg.samsung.com>
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=91293

diff --git a/boilerplate/cairo-boilerplate-glx.c b/boilerplate/cairo-boilerplate-glx.c
index 3d58215..7701d90 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;


More information about the cairo-commit mailing list