From 26bdc3e1d5aa2fd394e7e69779068c81d1e82dcc Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 24 Mar 2019 19:23:02 -0700 Subject: [PATCH] Avoid using ANGLE on debug builds due to assert issues on Qt 5.12.2 --- app/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/main.cpp b/app/main.cpp index 221a5162..9d2eb6c9 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -289,7 +289,10 @@ int main(int argc, char *argv[]) // password prompts on macOS. qputenv("QT_SSL_USE_TEMPORARY_KEYCHAIN", "1"); -#ifdef Q_OS_WIN32 + // The debug build of ANGLE on Qt 5.12.2 triggers all sorts of asserts + // even simply creating an empty Qt Quick window and then trying to close + // the program. Avoid using ANGLE for debug builds until the issue is fixed. +#if defined(Q_OS_WIN32) && !defined(QT_DEBUG) if (!qEnvironmentVariableIsSet("QT_OPENGL")) { // On Windows, use ANGLE so we don't have to load OpenGL // user-mode drivers into our app. OGL drivers (especially Intel)