{
glXMakeContextCurrent (backend_x11->xdpy, None, None, NULL);
glXDestroyContext (backend_x11->xdpy, backend_glx->gl_context);
- backend_glx->gl_context = None;
+ backend_glx->gl_context = NULL;
}
if (backend_glx->dummy_glxwin)
flags |= CLUTTER_FEATURE_STAGE_MULTIPLE;
/* this will make sure that the GL context exists */
- g_assert (backend_glx->gl_context != None);
+ g_assert (backend_glx->gl_context != NULL);
g_assert (glXGetCurrentDrawable () != None);
CLUTTER_NOTE (BACKEND,
None
};
- if (backend_x11->xdpy == None || backend_x11->xscreen == None)
+ if (backend_x11->xdpy == NULL || backend_x11->xscreen == NULL)
return FALSE;
/* If we don't already have a cached config then try to get one */
vinfo = glXGetVisualFromFBConfig (backend_x11->xdpy,
configs[i]);
- if (vinfo == None)
+ if (vinfo == NULL)
continue;
if (vinfo->depth == 32 &&
int minor;
GLXDrawable dummy_drawable;
- if (backend_glx->gl_context != None)
+ if (backend_glx->gl_context != NULL)
return TRUE;
xdisplay = clutter_x11_get_default_display ();
GLX_RGBA_TYPE,
NULL,
True);
- if (backend_glx->gl_context == None)
+ if (backend_glx->gl_context == NULL)
{
g_set_error (error, CLUTTER_INIT_ERROR,
CLUTTER_INIT_ERROR_BACKEND,
* now this is the best solution available.
*/
xvisinfo = glXGetVisualFromFBConfig (xdisplay, config);
- if (xvisinfo == None)
+ if (xvisinfo == NULL)
{
g_set_error (error, CLUTTER_INIT_ERROR,
CLUTTER_INIT_ERROR_BACKEND,
(unsigned int) drawable);
/* no GL context to set */
- if (backend_glx->gl_context == None)
+ if (backend_glx->gl_context == NULL)
return;
clutter_x11_trap_x_errors ();
CLUTTER_NOTE (BACKEND, "XOpenDisplay on '%s'",
clutter_display_name);
backend_x11->xdpy = XOpenDisplay (clutter_display_name);
- if (backend_x11->xdpy == None)
+ if (backend_x11->xdpy == NULL)
{
g_set_error (error, CLUTTER_INIT_ERROR,
CLUTTER_INIT_ERROR_BACKEND,