Workaround for pyopengl import error
This commit is contained in:
parent
6ea2bce484
commit
56efcbe981
@ -3,7 +3,9 @@ try:
|
||||
from ..Qt import QtOpenGL
|
||||
from OpenGL.GL import *
|
||||
HAVE_OPENGL = True
|
||||
except ImportError:
|
||||
except Exception:
|
||||
# Would prefer `except ImportError` here, but some versions of pyopengl generate
|
||||
# AttributeError upon import
|
||||
HAVE_OPENGL = False
|
||||
|
||||
from .. import functions as fn
|
||||
|
Loading…
x
Reference in New Issue
Block a user