Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#20 glutDestroyWindow()

open
nobody
lib (26)
7
2005-08-13
2005-07-28
Richard Rauch
No

An anonymous user of freeglut, in freeglut bug report
1232602, reports that glutDestroyWindow() cannot close a
window.

He negleects to say what version of freeglut he is using
or anything about his OS, leaving the bug's status
unclear. His sample code is (adjusted for clarity):

glutInitDisplayMode (GLUT_RGB|GLUT_DOUBLE|GLUT_DEPTH);
int win = glutCreateWindow ("Temp");
glutDestroyWindow (win);

If he has written the code verbatim as above, it is
likely that the window doesn't completely exist when he
attempts to destroy it. If that is all that is causing
his problem, it may be better to document this behavior
as undefined than to try to properly destroy a window
before it is fully created. Or perhaps treat it as an
API-abuse (client error) to close a window that is not
yet open.

Discussion

  • Richard Rauch
    Richard Rauch
    2005-07-28

    Logged In: YES
    user_id=854844

    CORRECTION: This corresponds to an OpenGLUT bug report, not a
    freeglut bug report. FWIW.

     
  • Richard Rauch
    Richard Rauch
    2005-08-13

    • summary: glutDestroyWindow cannot close window --> glutDestroyWindow()