added support for recreating the gl context (needed for android)