mac ui kind of works (#2079)

old-commit-hash: 7956bb6883
This commit is contained in:
Adeeb Shihadeh
2020-08-25 00:56:42 -07:00
committed by GitHub
parent cc848bcf0b
commit 4936fd4709
2 changed files with 6 additions and 1 deletions

View File

@@ -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 \

View File

@@ -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);