Fix crash when no nvidia GPU is detected

This commit is contained in:
romner
2023-05-14 17:40:50 +02:00
parent 0e0025a2c3
commit 2d27f2ff61
3 changed files with 3 additions and 3 deletions

View File

@@ -537,7 +537,7 @@ namespace Runner {
if (Global::debug) debug_timer("gpu", draw_begin);
//? Draw box
if (not pause_output) output += Gpu::draw(gpu, conf.force_redraw, conf.no_update);
if (not pause_output and Gpu::Nvml::initialized) output += Gpu::draw(gpu, conf.force_redraw, conf.no_update);
if (Global::debug) debug_timer("gpu", draw_done);
}