[ pyopengl-Bugs-1591492 ] Callback resetting problem if GLUT_GUARD_CALLBACKS is set

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Bugs item #1591492, was opened at 2006-11-06 12:12
Message generated for change (Comment added) made by mcfletch
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1591492&group_id=5988

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: GLUT
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: David Murmann (dmurmann)
>Assigned to: Mike C. Fletcher (mcfletch)
Summary: Callback resetting problem if GLUT_GUARD_CALLBACKS is set

Initial Comment:
This was observed in OpenGL-ctypes 3.0.0a4:

The code in OpenGL/GLUT/special.py does not
correctly check for None as a callback function.
To trigger the problem deregister a callback on
a platform where GLUT_GUARD_CALLBACKS is True
(like win32).

In line 58 the condition

  if GLUT_GUARD_CALLBACKS:

could be replaced by

  if GLUT_GUARD_CALLBACKS and callable( function ):

to fix this.


----------------------------------------------------------------------

>Comment By: Mike C. Fletcher (mcfletch)
Date: 2006-11-07 13:34

Message:
Logged In: YES 
user_id=34901

Patch incorporated in CVS.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1591492&group_id=5988

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.