glutHideWindow not working

Hi all,

I have a callback where I need to hide some subwindows and expose a larger window that is usually underneath them. However for some reason glutHideWindow is not working in my callback.Or rather, it only works after the callback has returned.

Is there a way to force the glutHideWindow to take effect before I return from my callback?


I solved it myself.