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>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1745>
This commit is contained in:
Olivier Fourdan 2024-11-26 10:34:59 +01:00 committed by Marge Bot
parent 8e8c0e54c4
commit b192c66e05

View file

@ -914,6 +914,10 @@ xwl_screen_validate_options(int argc, char **argv)
else if (strcmp(argv[i], "-rootless") == 0) {
rootless = TRUE;
}
else if (strcmp(argv[i], "+iglx") == 0) {
ErrorF("Invalid argument, '+iglx' (indirect GLX context) is not supported\n");
return FALSE;
}
}
if (rootless && use_fixed_size) {