work with GL initialization