shadow: reduce changes of regenerating gl surface