if(screen->root_glx_pixmap)
{
glXDestroyPixmap(compositor->display, screen->root_glx_pixmap);
- screen->root_glx_pixmap = 0;
+ screen->root_glx_pixmap = None;
}
XGetWindowProperty(compositor->display, screen->root, compositor->root_pmap_atom, 0, 1, False, XA_PIXMAP,
&prop_type, &prop_format, &length, &overflow, (unsigned char **)&pixmap);
if(prop_type!=XA_PIXMAP || prop_format!=32)
{
- screen->root_pixmap = 0;
+ screen->root_pixmap = None;
return;
}
return 0;
XRRFreeScreenResources(xrr_res);
- screen->root_pixmap = 0;
- screen->root_glx_pixmap = 0;
+ screen->root_pixmap = None;
+ screen->root_glx_pixmap = None;
update_geometry_correction(compositor, screen);
update_root_pixmap(compositor, screen);
for(i=0; i<3; ++i)
glDeleteShader(screen->shaders[i]);
- glXMakeContextCurrent(compositor->display, 0, 0, NULL);
+ glXMakeContextCurrent(compositor->display, None, None, NULL);
glXDestroyContext(compositor->display, screen->glx_context);
glXDestroyWindow(compositor->display, screen->glx_window);
XDestroyWindow(compositor->display, screen->render_window);