forked from openlp/openlp
fixed bug 907857: opengl rendering disabled for mac
This commit is contained in:
parent
1f6be045f5
commit
6828fc9ef5
@ -30,6 +30,7 @@ and play multimedia within OpenLP.
|
|||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui, QtWebKit, QtOpenGL
|
from PyQt4 import QtCore, QtGui, QtWebKit, QtOpenGL
|
||||||
from PyQt4.phonon import Phonon
|
from PyQt4.phonon import Phonon
|
||||||
@ -61,6 +62,11 @@ class Display(QtGui.QGraphicsView):
|
|||||||
self.controller = controller
|
self.controller = controller
|
||||||
self.screen = {}
|
self.screen = {}
|
||||||
self.plugins = PluginManager.get_instance().plugins
|
self.plugins = PluginManager.get_instance().plugins
|
||||||
|
# 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())
|
self.setViewport(QtOpenGL.QGLWidget())
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user