diff --git a/app/render/opengl/openglrenderer.cpp b/app/render/opengl/openglrenderer.cpp index 2b8392514..dc8da16cd 100644 --- a/app/render/opengl/openglrenderer.cpp +++ b/app/render/opengl/openglrenderer.cpp @@ -869,8 +869,15 @@ GLuint OpenGLRenderer::GetCachedTexture(int width, int height, int depth, VideoP GLuint OpenGLRenderer::CompileShader(GLenum type, const QString &code) { - static const QString shader_preamble = QStringLiteral("#version 100\n\n" - "precision highp float;\n\n"); + static const QString shader_preamble = +#ifndef Q_OS_MAC + // Use appropriate GL ES 2.0 shader header + QStringLiteral("#version 100\n\n" + "precision highp float;\n\n"); +#else + // Use desktop GL equivalent header because apparently macOS doesn't support the ES header + QStringLiteral("#version 120\n\n"); +#endif QString complete_code = shader_preamble;