Merge "Free resources only from the GL context thread. Bug #3179882"