winex11: Print a winediag err if XComposite is missing.

This commit is contained in:
Zebediah Figura 2022-10-20 18:08:37 -05:00 committed by Alexandre Julliard
parent 7926253d82
commit 6d8241c80b

View file

@ -1350,7 +1350,11 @@ static struct gl_drawable *create_gl_drawable( HWND hwnd, const struct wgl_pixel
#endif
else
{
WARN("XComposite is not available, using GLXPixmap hack\n");
static unsigned int once;
if (!once++)
ERR_(winediag)("XComposite is not available, using GLXPixmap hack.\n");
WARN("XComposite is not available, using GLXPixmap hack.\n");
gl->type = DC_GL_PIXMAP_WIN;
gl->pixmap = XCreatePixmap( gdi_display, root_window, width, height, visual->depth );