Disable XRender if bit masks aren't valid.

XRender code in the X11 driver will go into an infinite loop when the 
colour bit masks are 0, so disable XRender in this case.
This commit is contained in:
Robert Shearman 2005-11-30 12:02:26 +01:00 committed by Alexandre Julliard
parent 2d5dc32f35
commit 2ff51299c8
1 changed files with 4 additions and 0 deletions

View File

@ -239,6 +239,10 @@ LOAD_OPTIONAL_FUNCPTR(XRenderSetPictureTransform)
ERR("mono_format == NULL?\n");
X11DRV_XRender_Installed = FALSE;
}
if (!visual->red_mask || !visual->green_mask || !visual->blue_mask) {
WARN("one or more of the colour masks are 0, disabling XRENDER. Try running in 16-bit mode or higher.\n");
X11DRV_XRender_Installed = FALSE;
}
}
wine_tsx11_unlock();
}