mac ui kind of works (#2079)

old-commit-hash: 7956bb6883
commatwo_master
Adeeb Shihadeh 5 years ago committed by GitHub
parent cc848bcf0b
commit 4936fd4709
  1. 1
      Dockerfile.openpilot_base
  2. 6
      selfdrive/ui/qt/ui.cc

@ -21,7 +21,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libffi-dev \
libglew-dev \
libgles2-mesa-dev \
libglfw3-dev \
libglib2.0-0 \
liblzma-dev \
libomp-dev \

@ -5,7 +5,13 @@
int main(int argc, char *argv[])
{
QSurfaceFormat fmt;
#ifdef __APPLE__
fmt.setVersion(3, 2);
fmt.setProfile(QSurfaceFormat::OpenGLContextProfile::CoreProfile);
fmt.setRenderableType(QSurfaceFormat::OpenGL);
#else
fmt.setRenderableType(QSurfaceFormat::OpenGLES);
#endif
QSurfaceFormat::setDefaultFormat(fmt);
QApplication a(argc, argv);

Loading…
Cancel
Save