From db47e9082951a872fe1071241f35fc262a049926 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 22 Jun 2010 14:10:44 +0100 Subject: [PATCH] cogl-texture-pixmap-x11: Use NULL instead of None for invalid GLXFBConfig GLXFBConfigs are opaque pointers not XIDs so it doesn't make sense to return None from get_fbconfig_for_depth. Instead it now returns NULL. --- clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c b/clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c index e3e4c4d99..691c9c539 100644 --- a/clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c +++ b/clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c @@ -225,7 +225,7 @@ get_fbconfig_for_depth (unsigned int depth, GLXFBConfig *fbconfig_ret, gboolean *can_mipmap_ret) { - GLXFBConfig *fbconfigs, ret = None; + GLXFBConfig *fbconfigs, ret = NULL; int n_elements, i, found; Display *dpy; int db, stencil, alpha, mipmap, rgba, value;