Catch RuntimeError exception that is generated in X systems with
no OpenGL support.
This commit is contained in:
parent
7552ab05fa
commit
9796aa5888
2 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,8 @@ CHANGELOG
|
|||
2006-12-19 Robert Ancell <bob27@users.sourceforge.net>
|
||||
* Don't try and redraw view widgets that have not been realized.
|
||||
* Fix bug which didn't redraw the whole area in 2D mode.
|
||||
* Catch RuntimeError exception that is generated in X systems with
|
||||
no OpenGL support.
|
||||
|
||||
2006-12-16 Andreas Røsdal <andrearo@pvv.ntnu.no>
|
||||
|
||||
|
|
|
@ -27,10 +27,12 @@ else:
|
|||
from glchess.defaults import *
|
||||
|
||||
# Optionally use OpenGL support
|
||||
# gtk.gtkgl throws RuntimeError when there is no OpenGL support
|
||||
# It should really just throw ImportError
|
||||
try:
|
||||
import gtk.gtkgl
|
||||
import OpenGL
|
||||
except ImportError:
|
||||
except (ImportError, RuntimeError):
|
||||
haveGLSupport = False
|
||||
else:
|
||||
haveGLSupport = True
|
||||
|
|
Loading…
Reference in a new issue