gnome-games r7955 - trunk/glchess/src/lib/gtkui
- From: rancell svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r7955 - trunk/glchess/src/lib/gtkui
- Date: Mon, 6 Oct 2008 13:12:07 +0000 (UTC)
Author: rancell
Date: Mon Oct 6 13:12:07 2008
New Revision: 7955
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7955&view=rev
Log:
Fix crash when have OpenGL libraries but cannot get valid display (Bug #551427)
Modified:
trunk/glchess/src/lib/gtkui/chessview.py
Modified: trunk/glchess/src/lib/gtkui/chessview.py
==============================================================================
--- trunk/glchess/src/lib/gtkui/chessview.py (original)
+++ trunk/glchess/src/lib/gtkui/chessview.py Mon Oct 6 13:12:07 2008
@@ -67,7 +67,7 @@
self.add_events(gtk.gdk.BUTTON_PRESS_MASK | gtk.gdk.BUTTON_RELEASE_MASK | gtk.gdk.BUTTON_MOTION_MASK)
# Make openGL drawable
- if hasattr(gtk, 'gtkgl'):
+ if haveGLSupport:
gtk.gtkgl.widget_set_gl_capability(self, glConfig)# FIXME:, share_list=glContext)
# Connect signals
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]