mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
feat(src/main.cpp): supports opengl render on mac
This commit is contained in:
parent
a105095fb0
commit
eb6e28c2e3
1 changed files with 2 additions and 6 deletions
|
|
@ -30,12 +30,8 @@ using namespace std;
|
|||
// =============================================================================
|
||||
|
||||
int main (int argc, char *argv[]) {
|
||||
// Force OpenGLES & shader version 2.0.
|
||||
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true);
|
||||
|
||||
QSurfaceFormat fmt;
|
||||
fmt.setVersion(2, 0);
|
||||
QSurfaceFormat::setDefaultFormat(fmt);
|
||||
QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL, true);
|
||||
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
|
||||
|
||||
App app(argc, argv);
|
||||
app.parseArgs();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue