From 1b08242433ca7a2e7ec97df76c95cb77d6e8766e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Sun, 25 Aug 2024 12:49:14 +0200 Subject: [PATCH] Use OpenGL ES on ARM by default --- main.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index c825d5b..fe4470e 100644 --- a/main.cpp +++ b/main.cpp @@ -10,12 +10,18 @@ int main(int argc, char *argv[]) setenv("LC_NUMERIC", "C", 1); #endif +#if defined(__i386__) || defined(__x86_64__) bool useGLES = false; +#else + bool useGLES = true; +#endif for(int i = 0; i < argc; i++) + { + if(std::strcmp("-gl", argv[i]) == 0) + useGLES = false; if(std::strcmp("-gles", argv[i]) == 0) - { useGLES = true; - } + } QSurfaceFormat format; if(useGLES)