gnome-games r8032 - branches/gnome-2-24/glchess/src/lib/scene/opengl
- From: rancell svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8032 - branches/gnome-2-24/glchess/src/lib/scene/opengl
- Date: Wed, 15 Oct 2008 10:05:23 +0000 (UTC)
Author: rancell
Date: Wed Oct 15 10:05:23 2008
New Revision: 8032
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8032&view=rev
Log:
Handle invalid response from glRenderMode(GL_RENDER) and print debugging information (Bug #535256)
Modified:
branches/gnome-2-24/glchess/src/lib/scene/opengl/opengl.py
Modified: branches/gnome-2-24/glchess/src/lib/scene/opengl/opengl.py
==============================================================================
--- branches/gnome-2-24/glchess/src/lib/scene/opengl/opengl.py (original)
+++ branches/gnome-2-24/glchess/src/lib/scene/opengl/opengl.py Wed Oct 15 10:05:23 2008
@@ -397,6 +397,14 @@
if coord is None:
return None
+ # TEMP
+ # Handle the failure case in bug #535256. By catching this we convert a crash
+ # that would generate bugzilla report into the user input being ignored. This should
+ # be removed once the problem has been fixed (assumed to be in PyGTK/OpenGL drivers).
+ if len(coord) != 2:
+ print 'Invalid response received from glRenderMode(GL_RENDER): coord=%s, viewport=%s' % (repr(coord), repr(viewport))
+ return None
+
# Convert from co-ordinates to LAN format
rank = chr(ord('a') + coord[0])
file = chr(ord('1') + coord[1])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]