From 6828fc9ef5af073615e3ecc68355ad36d24c70da Mon Sep 17 00:00:00 2001 From: Martin Zibricky Date: Thu, 22 Dec 2011 19:17:35 +0100 Subject: [PATCH] fixed bug 907857: opengl rendering disabled for mac --- openlp/core/ui/maindisplay.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/openlp/core/ui/maindisplay.py b/openlp/core/ui/maindisplay.py index 03b5da7e6..c8d061e17 100644 --- a/openlp/core/ui/maindisplay.py +++ b/openlp/core/ui/maindisplay.py @@ -30,6 +30,7 @@ and play multimedia within OpenLP. """ import logging import os +import sys from PyQt4 import QtCore, QtGui, QtWebKit, QtOpenGL from PyQt4.phonon import Phonon @@ -61,7 +62,12 @@ class Display(QtGui.QGraphicsView): self.controller = controller self.screen = {} self.plugins = PluginManager.get_instance().plugins - self.setViewport(QtOpenGL.QGLWidget()) + # FIXME: On Mac OS X (tested on 10.7) the display screen is corrupt with + # OpenGL. Only white blank screen is shown on the 2nd monitor all the + # time. We need to investigate more how to use OpenGL properly on Mac OS + # X. + if sys.platform != 'darwin': + self.setViewport(QtOpenGL.QGLWidget()) def setup(self): """