X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffg_structure.c;h=0fee95d9e7d4260155505330d1ecd5af230070c0;hb=534da7a270994c4163b9d08e3daf739109c52226;hp=4274667efe339887404f484c8b14e2c11a5b6a57;hpb=01ba3ccc0284c27141e03b0ceaf2c01b6a135469;p=freeglut diff --git a/src/fg_structure.c b/src/fg_structure.c index 4274667..0fee95d 100644 --- a/src/fg_structure.c +++ b/src/fg_structure.c @@ -182,6 +182,11 @@ void fgAddToWindowDestroyList( SFG_Window* window ) fghClearCallBacks( window ); SET_WCB( *window, Destroy, destroy, destroyData ); } + + /* + * Similarly, clear all work set for the window, none of this has to be executed anymore + */ + window->State.WorkMask = 0; } /*