From 191d2e55d08bd26b89a837708e134fa0de06ab09 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Thu, 20 Aug 2020 21:33:32 +0200 Subject: [PATCH] ui: force GLES context old-commit-hash: 2410c7e26bbf60dda83792d273f049586c1aa001 --- selfdrive/ui/qt/ui.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/ui.cc b/selfdrive/ui/qt/ui.cc index 43396b7522..40ade50df0 100644 --- a/selfdrive/ui/qt/ui.cc +++ b/selfdrive/ui/qt/ui.cc @@ -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();