mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-07-15 01:23:37 -07:00
Fix OpenGL on macOS
This commit is contained in:
parent
f8c9ddade4
commit
2b8bf99dd5
3 changed files with 49 additions and 15 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <settings.h>
|
||||
#include <registdialog.h>
|
||||
#include <host.h>
|
||||
#include <avopenglwidget.h>
|
||||
|
||||
#include <chiaki-cli.h>
|
||||
|
||||
|
@ -21,6 +22,7 @@
|
|||
#include <QAudioFormat>
|
||||
#include <QCommandLineParser>
|
||||
#include <QMap>
|
||||
#include <QSurfaceFormat>
|
||||
|
||||
Q_DECLARE_METATYPE(ChiakiLogLevel)
|
||||
|
||||
|
@ -55,9 +57,12 @@ int main(int argc, char *argv[])
|
|||
return 1;
|
||||
}
|
||||
|
||||
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
||||
QSurfaceFormat::setDefaultFormat(AVOpenGLWidget::CreateSurfaceFormat());
|
||||
|
||||
QApplication app(argc, argv);
|
||||
|
||||
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
|
||||
Settings settings;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue