render: don't automatically fall back to Vulkan

The Vulkan renderer is still experimental. If GL fails, we don't
want to automatically fall back to it by default.

Fixes: 8bd7170fd9 ("Use env helpers")
This commit is contained in:
Simon Ser 2022-10-01 17:57:58 +02:00
parent e40d492b78
commit db08004c23

View file

@ -302,7 +302,7 @@ struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd) {
#endif
#if WLR_HAS_VULKAN_RENDERER
if (!renderer && (is_auto || strcmp(renderer_name, "vulkan") == 0)) {
if (!renderer && strcmp(renderer_name, "vulkan") == 0) {
if (drm_fd < 0) {
log_creation_failure(is_auto, "Cannot create Vulkan renderer: no DRM FD available");
} else {