ui: force GLES context

old-commit-hash: 2410c7e26b
commatwo_master
Willem Melching 5 years ago
parent 7525b2e4f6
commit 191d2e55d0
  1. 5
      selfdrive/ui/qt/ui.cc

@ -4,10 +4,13 @@
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QSurfaceFormat fmt;
fmt.setRenderableType(QSurfaceFormat::OpenGLES);
QSurfaceFormat::setDefaultFormat(fmt);
QApplication a(argc, argv); QApplication a(argc, argv);
MainWindow w; MainWindow w;
w.setFixedSize(vwp_w, vwp_h); w.setFixedSize(vwp_w, vwp_h);
w.show(); w.show();

Loading…
Cancel
Save