Avoids attempting to use EGL in visual_from_pixel_format, even when it may not be usable.
-- v2: winex11.drv: Set use_egl to false if it is unavailable.
From: Tim Clem tclem@codeweavers.com
Avoids attempting to use EGL in visual_from_pixel_format, even when it may not be usable. --- dlls/winex11.drv/opengl.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index c1e4ca8d5af..f8c1c7630c5 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -564,6 +564,7 @@ UINT X11DRV_OpenGLInit( UINT version, const struct opengl_funcs *opengl_funcs, c *driver_funcs = &x11drv_driver_funcs; return STATUS_SUCCESS; } + else use_egl = FALSE;
/* No need to load any other libraries as according to the ABI, libGL should be self-sufficient and include all dependencies */