Skip to content

Commit

Permalink
mac ui kind of works (commaai#2079)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh authored Aug 25, 2020
1 parent ac4e244 commit 7956bb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion Dockerfile.openpilot_base
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
6 changes: 6 additions & 0 deletions selfdrive/ui/qt/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7956bb6

Please sign in to comment.