From 62de0be45bf84b360de52264886f947462ef0f6a Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Fri, 1 Nov 2019 18:06:05 +0000
Subject: [PATCH] graphics: Set CANNOT_DRAW if we cannot run check-vulkan

Previously we used CANNOT_LOAD here, but that seems wrong. If we can
run check-vulkan, but it immediately crashes, we would use CANNOT_DRAW;
let's use the same result if we cannot run it.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 steam-runtime-tools/graphics.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/steam-runtime-tools/graphics.c b/steam-runtime-tools/graphics.c
index 558c53e38..56ad224db 100644
--- a/steam-runtime-tools/graphics.c
+++ b/steam-runtime-tools/graphics.c
@@ -715,7 +715,7 @@ _srt_check_graphics (const char *helpers_path,
                          &error))
         {
           g_debug ("An error occurred calling the helper: %s", error->message);
-          issues |= SRT_GRAPHICS_ISSUES_CANNOT_LOAD;
+          issues |= SRT_GRAPHICS_ISSUES_CANNOT_DRAW;
           goto out;
         }
 
-- 
GitLab