mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 11:32:21 +08:00
ui: force GLES context
old-commit-hash: 2410c7e26bbf60dda83792d273f049586c1aa001
This commit is contained in:
@@ -4,10 +4,13 @@
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QSurfaceFormat fmt;
|
||||
fmt.setRenderableType(QSurfaceFormat::OpenGLES);
|
||||
QSurfaceFormat::setDefaultFormat(fmt);
|
||||
|
||||
QApplication a(argc, argv);
|
||||
|
||||
MainWindow w;
|
||||
|
||||
w.setFixedSize(vwp_w, vwp_h);
|
||||
w.show();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user