Module: wine Branch: master Commit: 6d8241c80bd0af120f16ccb78fa08a5411fe93be URL: https://gitlab.winehq.org/wine/wine/-/commit/6d8241c80bd0af120f16ccb78fa08a5...
Author: Zebediah Figura zfigura@codeweavers.com Date: Thu Oct 20 18:08:37 2022 -0500
winex11: Print a winediag err if XComposite is missing.
---
dlls/winex11.drv/opengl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index 2acf9db5372..c74c317f6ff 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -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 );