This pointer could be NULL if the window was hidden before calling glMakeCurrent, which would make the program crash. In fact, at least elm_win hides the window before actually deleting it (thus calling this function). SVN revision: 79017