Commit eb6e28c2 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(src/main.cpp): supports opengl render on mac

parent a105095f
...@@ -30,12 +30,8 @@ using namespace std; ...@@ -30,12 +30,8 @@ using namespace std;
// ============================================================================= // =============================================================================
int main (int argc, char *argv[]) { int main (int argc, char *argv[]) {
// Force OpenGLES & shader version 2.0. QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL, true);
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true); QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
QSurfaceFormat fmt;
fmt.setVersion(2, 0);
QSurfaceFormat::setDefaultFormat(fmt);
App app(argc, argv); App app(argc, argv);
app.parseArgs(); app.parseArgs();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment