Make sure WINDOW is still valid post-RENDER