clear window workmask when queuing up window for destruction. All callbacks (except...
authorDiederick Niehorster <dcnieho@gmail.com>
Mon, 23 Oct 2017 19:01:09 +0000 (19:01 +0000)
committerDiederick Niehorster <dcnieho@gmail.com>
Mon, 23 Oct 2017 19:01:09 +0000 (19:01 +0000)
commit534da7a270994c4163b9d08e3daf739109c52226
treeceb7016ffb1f53bbce09ba667aaf1a837cdc1dd8
parent01ba3ccc0284c27141e03b0ceaf2c01b6a135469
clear window workmask when queuing up window for destruction. All callbacks (except destroy) are removed from the window already anyway. This fixes a problem where a newly created window that is immediately destroyed again causes an error-exit because it is still being inited and at that point it is found that no display callback has been set, which is an error.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1837 7f0cb862-5218-0410-a997-914c9d46530a
src/fg_structure.c