#151 Callback resetting problem if GLUT_GUARD_CALLBACKS is set

closed-fixed
GLUT (25)
5
2006-11-07
2006-11-06
No

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.

Discussion

  • Mike C. Fletcher

    Logged In: YES
    user_id=34901

    Patch incorporated in CVS.

     
  • Mike C. Fletcher

    • assigned_to: nobody --> mcfletch
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks