PDA

View Full Version : glutAttachMenu() broken on Fedora 17



windchine
06-24-2012, 04:44 AM
An upgrade from Fedora 16 to Fedora 17 seems to have broken menu attachment or activation. Where as "glutAttachMenu(GLUT_RIGHT_BUTTON)" used to bring up a menu on a right click in the window, now nothing happens. The same is true if the other mouse buttons are set as triggers. This has been tested on a number of different Fedora 17 machines with the same result.

The attached cc shows the problem. Unfortunately I have not tested this particular cc with Fedora 16 as I was not aware of the problem until all machines were upgraded. I have an application using a similar call sequence and this used to work with 16 but now shows the fault with 17.

If this is a glut problem, how do I identify the glut version concerned ?

This is similar to the historic bug below, however the part where setting the left button resulting in all buttons triggering the menu does not apply.
http://www.opengl.org/discussion_boards/showthread.php/158792-glutAttachMenu-now-broken

Sorry if this should be reported to Fedora and not OpenGL - I don't know the accepted reporting etiquette between distribution and packaged application.

Thanks.

kowal
06-26-2012, 03:36 AM
Your code does not work for me (menu does not appear),
I tried some basic GLUT menu examples from lighthouse3d, they do not display menus either,
recent version of glut must be broken.

I'm on Arch x86_64,
freeglut 2.8.0
nvidia drivers 302.17

Edit:
I just downloaded and compiled freeglut 2.6.0, and menus are working fine,
maybe temporary solution is to downgrade freeglut until it gets fixed?

Edit2:
There is bug report on freeglut's tracker:
http://sourceforge.net/tracker/?func=detail&aid=3487009&group_id=1032&atid=101032

and discussion about it on Arch forums:
https://bbs.archlinux.org/viewtopic.php?id=135564

windchine
06-27-2012, 11:40 AM
Thanks for trying that out and providing the links. I'll drop back to the older version while its being fixed.