X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_structure.c;h=747a8b5ec34943caba19fe2e38eaa1cd50dcff96;hb=b1ed93dd348f7b8f3bd2c75474f5d4151d502f1f;hp=4274667efe339887404f484c8b14e2c11a5b6a57;hpb=831749819dcdc1ea884c18607c2b447bbf5fca72;p=freeglut diff --git a/src/fg_structure.c b/src/fg_structure.c index 4274667..747a8b5 100644 --- a/src/fg_structure.c +++ b/src/fg_structure.c @@ -83,7 +83,7 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title, fgError( "Out of memory. Could not create window." ); } - fgPlatformCreateWindow ( window ); + fgPlatformCreateWindow ( window ); fghClearCallBacks( window ); SET_WCB( *window, Reshape, fghDefaultReshape, NULL); @@ -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; } /*