[PATCH] winemac.drv: Print error when no GPUs are detected.

Brendan Shanks bshanks at codeweavers.com
Tue Sep 8 18:09:46 CDT 2020


Signed-off-by: Brendan Shanks <bshanks at codeweavers.com>
---
 dlls/winemac.drv/display.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/winemac.drv/display.c b/dlls/winemac.drv/display.c
index a96a7b2c5f6..078cb55ab8a 100644
--- a/dlls/winemac.drv/display.c
+++ b/dlls/winemac.drv/display.c
@@ -1790,6 +1790,8 @@ void macdrv_init_display_devices(BOOL force)
     if (macdrv_get_gpus(&gpus, &gpu_count))
         goto done;
     TRACE("GPU count: %d\n", gpu_count);
+    if (!gpu_count)
+        ERR("No GPUs detected\n");
 
     for (gpu = 0; gpu < gpu_count; gpu++)
     {
-- 
2.26.2




More information about the wine-devel mailing list