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)