Commit 2ff51299 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

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.
parent 2d5dc32f
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment