From 7d206ccdbb93852871047454dca2af27462b0a49 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. --- cogl/winsys/cogl-texture-pixmap-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/winsys/cogl-texture-pixmap-x11.c b/cogl/winsys/cogl-texture-pixmap-x11.c index e3e4c4d99..691c9c539 100644 --- a/cogl/winsys/cogl-texture-pixmap-x11.c +++ b/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;