1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-01-10 06:16:48 +00:00

Advances to having a selected machine actually run.

Albeit, invisibly.
This commit is contained in:
Thomas Harte
2020-06-03 23:39:16 -04:00
parent e2ceb77501
commit fdc234ed3b
7 changed files with 77 additions and 11 deletions

View File

@@ -4,6 +4,16 @@
int main(int argc, char *argv[])
{
// "Calling QSurfaceFormat::setDefaultFormat() before constructing the
// QApplication instance is mandatory on some platforms ... when an
// OpenGL core profile context is requested."
QSurfaceFormat format;
format.setVersion(3, 2);
format.setProfile(QSurfaceFormat::CoreProfile);
format.setDepthBufferSize(0);
format.setStencilBufferSize(0);
QSurfaceFormat::setDefaultFormat(format);
QApplication a(argc, argv);
MainWindow w;
w.show();