From 5e0b58620a6677e6cb031978b2f66304446169b0 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 9 Apr 2023 23:51:37 +0200 Subject: [PATCH] luxmark: hide compilation dialog on errors like CL_OUT_OF_HOST_MEMORY The compilation dialog should be hidden if the OpenCL kernel compilation failed, and not let the application in an unusable state with all inputs disabled. --- src/luxmarkapp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/luxmarkapp.cpp b/src/luxmarkapp.cpp index 7f242bd..7e5d4d3 100644 --- a/src/luxmarkapp.cpp +++ b/src/luxmarkapp.cpp @@ -249,8 +249,10 @@ void LuxMarkApp::EngineInitThreadImpl(LuxMarkApp *app) { app->engineInitDone = true; } catch (runtime_error &err) { LM_ERROR("RUNTIME ERROR: " << err.what()); + LM_HIDE_KERNEL_COMPILATION_DIALOG; } catch (exception &err) { LM_ERROR("ERROR: " << err.what()); + LM_HIDE_KERNEL_COMPILATION_DIALOG; } }