xwayland: Refuse to start with indirect GLX enabled

Xwayland does not support indirect GLX contexts and enabling them will
crash the xserver.

Refuse to start if indirect GLX contexts are enabled on the command
line.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
This commit is contained in:
Olivier Fourdan 2024-11-26 10:34:59 +01:00
parent d98b36461a
commit c22ee2e580

View file

@ -973,6 +973,10 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv)
else if (strcmp(argv[i], "-hidpi") == 0) {
xwl_screen->hidpi = 1;
}
else if (strcmp(argv[i], "+iglx") == 0) {
ErrorF("Xwayland does not support indirect GLX contexts\n");
return FALSE;
}
}
if (!xwl_screen->rootless) {